Skip to content

Instantly share code, notes, and snippets.

@st98
Last active August 29, 2015 14:13
Show Gist options
  • Save st98/4899584afa6b8b42a465 to your computer and use it in GitHub Desktop.
Save st98/4899584afa6b8b42a465 to your computer and use it in GitHub Desktop.
OCaml 入門。
3 |> fun x -> x * 2 |> succ;; (* => 7 *)
succ @@ (fun x -> x * 2) @@ 3;; (* => 7 *)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment