Skip to content

Instantly share code, notes, and snippets.

@kmizu
Last active July 24, 2018 18:57
Show Gist options
  • Save kmizu/a31b1e9fc8477900a15a691ad5019144 to your computer and use it in GitHub Desktop.
Save kmizu/a31b1e9fc8477900a15a691ad5019144 to your computer and use it in GitHub Desktop.
型推論に関する最近の話題への雑感 ref: https://qiita.com/kmizu/items/2ace816340e8553bd278
fun fold_left f [] z = z
| fold_left f (x::xs) z = fold_left f xs (f z x);
val fold_left = fn : ('a -> 'b -> 'a) -> 'b list -> 'a -> 'a
var x = expression;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment