4 ms·
> . f = | x -> y -> x \* y What do these symbols mean “|” “\*”
by jbritton 3y ago
> . f = | x -> y -> x \* y
What do these symbols mean
“|”
“\*”
- surprisetalk 3y agoThe `|` operator indicates that you're starting a function. And `*` is basic multiplication. Scrapscript: | x -> y -> x * y Javascript: x => y => x * y It also works as a pattern-matching statement. | true -> true -> 2 | true -> false -> 1 | false -> true -> 1 | false -> false -> 0