Ocaml Phrasebook (final bits) The ; character is a separator, not terminator. foo (); foo (); bar (); bar (); baz (); baz () Some idioms are worth translating foo (zug *z) { let foo z = match z with if (z) { Some x -> (* "ok" *) /* non-NULL means OK */ | None -> (* "nothing" *) } else { /* NULL means "nothing" */ } List *ls = hd; let foo ls = match ls with while (l) { [] -> () (* ignore end *) frob x; | x::xs -> (frob x; foo xs) l = l->nxt; } (* or just... *) let foo = List.iter frob