If and While
If
In Wu, as mentioned, everything is an expression, even if-conditions. This means you can define your variables, call your functions etc. based on where the program flow is going.
Of course you can always decide to use vanilla if's:
Or not:
While
While-expressions work basically the same way as if-expressions, though they always return ()
- which is kind of useless, but for the sake of consistency and expression-oriented programming so whatever.
So, normal independent while loops:
You can also assign variables to while loops, if you for some reason wanted to do that:
Last updated