File tree 1 file changed +9
-8
lines changed
lib/github.com/diku-dk/sml-uref
1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
1
(* * Unifiable references.
2
- *
3
- * Unifiable references provide a Union/Find data type with a ref-like
4
- * interface. A Union/Find structure consists of a type constructor
5
- * 'a uref with operations for creating an element of type 'a uref (uRef),
6
- * getting the contents of an element (!!), checking for equality of
7
- * two elements (equal), and for unifying two elements (unify).
8
- *)
2
+
3
+ Unifiable references provide a Union/Find data type with a ref-like
4
+ interface. A Union/Find structure consists of a type constructor 'a
5
+ uref with operations for creating an element of type 'a uref (uRef),
6
+ getting the contents of an element (!!), checking for equality of two
7
+ elements (equal), and for unifying two elements (unify).
8
+
9
+ *)
9
10
10
11
signature UREF = sig
11
12
type 'a uref
@@ -40,7 +41,7 @@ the same call to uref or if they have been unioned (see below).
40
41
[compare cmp (e, e')] returns EQUAL if eq (e, e') returns true;
41
42
otherwise return cmp (!!e, !!e').
42
43
43
- Discussion:
44
+ [ Discussion]
44
45
45
46
The uref type constructor is analogous to the ref type constructor as
46
47
expressed in the following table:
You can’t perform that action at this time.
0 commit comments