op_insert ('a -> 'a -> bool) -> 'a -> 'a list -> 'a list
- op_insert (fn x => fn y => x = y mod 2) 1 [3,2];
> val it = [3, 2] : int list
- op_insert aconv (Term `\x. x /\ y`)
[T, Term `\z. z /\ y`, F];
> val it = [`T`, `\z. z /\ y`, `F`] : term list
- op_insert aconv (Term `\x. x /\ y`)
[T, Term `\z. z /\ a`, F];
> val it = [`\x. x /\ y`, `T`, `\z. z /\ a`, `F`] : term list
One should not write code that depends on the arrangement of elements in the result.
A high-performance implementation of finite sets may be found in structure HOLset.