Skip to content

Instantly share code, notes, and snippets.

@kmizu
Created December 17, 2018 07:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmizu/0b7177f39ca4a6d589d62a84a1028c59 to your computer and use it in GitHub Desktop.
Save kmizu/0b7177f39ca4a6d589d62a84a1028c59 to your computer and use it in GitHub Desktop.
OCaml初心者によるOCaml雑感 ref: https://qiita.com/kmizu/items/b00cfba234d11d85f956
[1, 2, 3, 4]
[1; 2; 3; 4]
int * int * int * int
Foo (1, 2, 3)
let x = ... in
...
let x = ...
...
List.map ~f:(fun x -> x * 2) (List.map ~f:(fun x -> x + 1) lst)
lst |> List.map ~f:(fun x -> x + 1) |> List.map ~f:(fun x -> x * 2);;
lst |> List.map ~f:(fun x -> x + 1) |> List.map ~f:(fun x -> x * 2);;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment