1 import "JavaBuiltin" as Java
2 import "StandardLibrary"
5 pair :: Default a => Default b => UTag (a, b) (Unifiable a, Unifiable b)
6 pair = uTag 0 (\(ua, ub) -> (extract ua, extract ub)) Java.unsafeCoerce
8 /*triple :: Default a => Default b => Default c =>
9 UTag (a, b, c) (Unifiable a, Unifiable b, Unifiable c)*/
10 triple = uTag 0 (\(ua, ub, uc) -> (extract ua, extract ub, extract uc)) Java.unsafeCoerce
12 main :: (Integer,Integer,Integer)
20 putUMap um1 "a" (uCons triple (v1, v2, v3))
21 putUMap um1 "a" (uCons triple (v2, v3, v1))
22 putUMap um1 "a" (uCons triple (vX, uVar, uVar))