Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
bool2int b = if b 1 0
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
case 6 * 7 of
|
||||
42 -> "Correct"
|
||||
_ -> "Wrong" // default, matches anything
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
answer 42 = True
|
||||
answer _ = False
|
||||
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue