Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
(* Languages with pattern matching ALREADY HAVE THIS! *)
|
||||
|
||||
fun myfunc (pred1, pred2) =
|
||||
case (pred1, pred2) of
|
||||
(true, true) => print ("(true, true)\n")
|
||||
| (true, false) => print ("(true, false)\n")
|
||||
| (false, true) => print ("(false, true)\n")
|
||||
| (false, false) => print ("(false, false)\n");
|
||||
|
||||
myfunc (true, true);
|
||||
myfunc (true, false);
|
||||
myfunc (false, true);
|
||||
myfunc (false, false);
|
||||
Loading…
Add table
Add a link
Reference in a new issue