Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1 @@
bool2int b = if b 1 0

View file

@ -0,0 +1,3 @@
case 6 * 7 of
42 -> "Correct"
_ -> "Wrong" // default, matches anything

View file

@ -0,0 +1,2 @@
answer 42 = True
answer _ = False

View file

@ -0,0 +1,8 @@
answer x
| x == 42 = True
| otherwise = False
case 6 * 7 of
n | n < 0 -> "Not even close"
42 -> "Correct"
// no default, could result in a run-time error