Hi everybody
I have a function, which takes argument t as follows:
[int, int, int, int] t
Then untuple data like this:
(int a, int b, int c, int d) = untuple4(t)
And I want to calc this expression later:
int r = a * b + c * d;
But looks like the compiler does not undestand types here for some reasons:
error: cannot apply function _+_ : (int, int) -> int to arguments of type (??20 -> ??21, ??22 -> ??23): cannot unify type ??20 -> ??21 with int
What's wrong and how to use tuple4/untuple4 properly?
UPD. Fixed. I've missed a space in the code near multiplication op
Aug 11, 2023, 5:00 PM