3 ms·
Yeah I did notice in the examples fac: fn { x } { either x = 1 { 1 } { x * fac x - 1 } } ; function that calculates factorial So presumably "either" i
by adrianmsmith 3y ago
Yeah I did notice in the examples
fac: fn { x } { either x = 1 { 1 } { x * fac x - 1 } }
; function that calculates factorial
So presumably "either" is the "if" expression.
- anamexis 3y ago"if" is the "if" expression - https://ryelang.org/meet_rye/basics/if_either/ https://ryelang.org/meet_rye/basics/if_either/
- acjohnson55 3y agoYeah, but "either" is the if-else construct, so the person you replied to isn't really wrong.