1 (* Copyright (C) 1999-2005 Henry Cejtin, Matthew Fluet, Suresh
2 * Jagannathan, and Stephen Weeks.
4 * MLton is released under a BSD-style license.
5 * See the file MLton-LICENSE for details.
7 (*-------------------------------------------------------------------*)
9 (*-------------------------------------------------------------------*)
11 functor Pair(structure X: T
12 structure Y: T): PAIR =
20 fun equals((x, y), (x', y')) = X.equals(x, x') andalso Y.equals(y, y')
24 paren(seq[X.layout x, str ", ", Y.layout y])
27 fun output((x, y), out) =
28 let val print = Out.outputc out