src/Pure/library.ML
changeset 18989 a5c3bc6fd6b6
parent 18966 dc49d8b18886
child 19011 d1c3294ca417
equal deleted inserted replaced
18988:d6e5fa2ba8b8 18989:a5c3bc6fd6b6
   923 fun x mem xs = member (op =) xs x;
   923 fun x mem xs = member (op =) xs x;
   924 fun (x: int) mem_int xs = member (op =) xs x;
   924 fun (x: int) mem_int xs = member (op =) xs x;
   925 fun (x: string) mem_string xs = member (op =) xs x;
   925 fun (x: string) mem_string xs = member (op =) xs x;
   926 
   926 
   927 fun x ins xs = insert (op =) x xs;
   927 fun x ins xs = insert (op =) x xs;
   928 fun (x:int) ins_int xs = insert (op =) x xs;
   928 fun (x: int) ins_int xs = insert (op =) x xs;
   929 fun (x:string) ins_string xs = insert (op =) x xs;
   929 fun (x: string) ins_string xs = insert (op =) x xs;
       
   930 
   930 
   931 
   931 (*union of sets represented as lists: no repetitions*)
   932 (*union of sets represented as lists: no repetitions*)
   932 fun xs union [] = xs
   933 fun xs union [] = xs
   933   | [] union ys = ys
   934   | [] union ys = ys
   934   | (x :: xs) union ys = xs union (x ins ys);
   935   | (x :: xs) union ys = xs union (x ins ys);