io.randomseed.utils.set

added in 1.0.0

Random Utilities, set support functions.

difference

(difference)(difference of)(difference of what)(difference of xform what)

Like clojure.set/difference but optimized with transients and supports an optional transducer xform.

out-of

(out-of)(out-of of)(out-of of what)(out-of of xform what)

Removes elements of what from set of. Uses difference when both are sets, otherwise falls back to transient-based disj.

replace-in

(replace-in s old-val new-val)

Replaces old-val with new-val in set s.