comparison tests/pcase.ur @ 244:71bafe66dbe1

Laconic -> Ur
author Adam Chlipala <adamc@hcoop.net>
date Sun, 31 Aug 2008 08:32:18 -0400
parents tests/pcase.lac@8221b95cc24c
children
comparison
equal deleted inserted replaced
243:2b9dfaffb008 244:71bafe66dbe1
1 val flip = fn x : int => case x of 0 => 1 | _ => 0
2
3 val zero = flip 1
4 val one = flip 0
5
6 val flipS = fn x : string => case x of "" => "Hello world!" | _ => ""
7
8 val s1 = flipS ""
9 val s2 = flipS "Boop"