added make;
authorwenzelm
Thu, 16 Oct 2008 22:44:35 +0200
changeset 28626 f65736dfc40d
parent 28625 d51a14105e53
child 28627 63663cfa297c
added make;
src/Pure/General/ord_list.ML
--- a/src/Pure/General/ord_list.ML	Thu Oct 16 22:44:34 2008 +0200
+++ b/src/Pure/General/ord_list.ML	Thu Oct 16 22:44:35 2008 +0200
@@ -9,6 +9,7 @@
 signature ORD_LIST =
 sig
   type 'a T = 'a list
+  val make: ('a * 'a -> order) -> 'a list -> 'a T
   val member: ('b * 'a -> order) -> 'a T -> 'b -> bool
   val insert: ('a * 'a -> order) -> 'a -> 'a T -> 'a T
   val remove: ('b * 'a -> order) -> 'b -> 'a T -> 'a T
@@ -22,6 +23,7 @@
 struct
 
 type 'a T = 'a list;
+fun make ord = sort_distinct ord;
 
 
 (* single elements *)