Can anyone explain the operator?

Hello. I don’t quite understand how the /≠ operator works. How does it work? Why is /≠ [1 1 0] 0 ​​(false) and /≠ [1 1 1] 1 (true)? And why is /≠ [1 2 3] 1?

This is a reduction for unequality. The first two elements get compared, than the result(!) is compared to the next element, this result is then taken and compared to the next etc.

[1 1 1] => [0 1] => 1

Merci, je comprends

1 Like

In case you want to read about the application in leap, see: Exercise Implementation Tracker · Issue #7 · exercism/uiua · GitHub