equal
deleted
inserted
replaced
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); |