File: exp.sml

package info (click to toggle)
mlton 20100608-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 34,980 kB
  • ctags: 69,089
  • sloc: ansic: 18,421; lisp: 2,879; makefile: 1,570; sh: 1,325; pascal: 256; asm: 97
file content (44 lines) | stat: -rw-r--r-- 526 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
val _ = 1 andalso true

val _ = true andalso 1

val _ = 13 14

val _ = (op +) (1, true)

val _ =
   case "foo" of
      13 => 14

val _ = 13: bool

val _ = + 1 2

val _ = 1 handle _ => "foo"

val _ = () handle _: int => ()

val _ = if "foo" then () else ()

val _ = if true then 1 else "foo"

val _ = [1, 2, "foo"]

val _ = 1 orelse true

val _ = true orelse 1

val _ = raise 13

val _ = "foo" + "bar"

val _ = while "foo" do ()

val _ =
   fn _: int => ()
    | _: bool => ()

val _ =
   fn 1 => "foo"
    | 2 => true