(counting-disj s ks)
Similar to disj, but counts the number of elements removed Returns tuple of [new-set num-items-removed]
Similar to disj, but counts the number of elements removed Returns tuple of [new-set num-items-removed]
(counting-dissoc m ks)
Similar to dissoc, but counts the number of elements removed Returns tuple of [new-map num-items-removed]
Similar to dissoc, but counts the number of elements removed Returns tuple of [new-map num-items-removed]
(counting-union s vs)
Similar to clojure.set/union, but counts the number of elements added Returns tuple of [new-set num-items-added]
Similar to clojure.set/union, but counts the number of elements added Returns tuple of [new-set num-items-added]
(reduce-right f init coll)
Based on https://gist.github.com/kohyama/2893987
(remove-all xs v)
Remove all occurrencess of v from xs, returning a tuple of [new-list num-items-removed]
Remove all occurrencess of v from xs, returning a tuple of [new-list num-items-removed]
(remove-first-n xs n v)
Remove the first n occurrences of v from xs, returning a tuple of [new-list num-items-removed]
Remove the first n occurrences of v from xs, returning a tuple of [new-list num-items-removed]
(remove-last-n xs n v)
Remove the last n occurrences of v from xs, returning a tuple of [new-list num-items-removed]
Remove the last n occurrences of v from xs, returning a tuple of [new-list num-items-removed]
(values-at m ks)
Similar to (comp vals select-keys), but includes nil for missing keys Ex: (values-at {:foo 1} [:foo :bar]) [1 nil]
Similar to (comp vals select-keys), but includes nil for missing keys Ex: (values-at {:foo 1} [:foo :bar]) [1 nil]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close