I found bitwise-and operator having different beha...
# getting-started
j
I found bitwise-and operator having different behavior in calling via infix syntax and method. Is it expected behavior?
👍 1
e
yes, because they mean
Copy code
(-3).and(0xFF)
-(3.and(0xFF))
respectively
j
Ok thanks.
e
you can see this with all infix functions, for example
Copy code
-1 to 1 // Pair(-1, 1)
-<http://1.to|1.to>(1) // ERROR Unresolved reference, because -Pair(1, 1) doesn't work
👍 1