|
|
|
|
|
by surprisetalk
1147 days ago
|
|
The `|` 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
|
|