Import Upstream version 20180207
[hcoop/debian/mlton.git] / lib / mlton / basic / function.sig
1 (* Copyright (C) 1999-2005 Henry Cejtin, Matthew Fluet, Suresh
2 * Jagannathan, and Stephen Weeks.
3 *
4 * MLton is released under a BSD-style license.
5 * See the file MLton-LICENSE for details.
6 *)
7
8 signature FUNCTION =
9 sig
10 val curry: ('a * 'b -> 'c) -> ('a -> 'b -> 'c)
11 val compose: ('b -> 'c) * ('a -> 'b) -> ('a -> 'c)
12 val layout: ('a -> 'b) -> Layout.t
13 val output: ('a -> 'b) * TextIO.outstream -> unit
14 val seq: ('a -> 'b) * ('b -> 'c) -> ('a -> 'c)
15 val seq3: ('a -> 'b) * ('b -> 'c) * ('c -> 'd) -> ('a -> 'd)
16 val uncurry: ('a -> 'b -> 'c) -> ('a * 'b -> 'c)
17 end