Liking cljdoc? Tell your friends :D

telsos.lib.algorithms.bags


bag-conjclj/s

(bag-conj)
(bag-conj bag)
(bag-conj bag x)
(bag-conj bag x & xs)

bag-countclj/s

(bag-count bag)
(bag-count bag x)

bag-differenceclj/s

(bag-difference bag)
(bag-difference bag-1 bag-2)
(bag-difference bag-1 bag-2 & bags)

Returns a new bag that is the difference between two bags. Only keeps elements that are present in the first bag but not in the second, or where the count in the first bag exceeds that in the second.

Returns a new bag that is the difference between two bags.
Only keeps elements that are present in the first bag but not in the second,
or where the count in the first bag exceeds that in the second.
raw docstring

bag-disjclj/s

(bag-disj bag)
(bag-disj bag x)
(bag-disj bag x & xs)

bag-intersectionclj/s

(bag-intersection bag)
(bag-intersection bag-1 bag-2)
(bag-intersection bag-1 bag-2 & bags)

Returns a new bag that is the intersection of two bags. Only keeps elements that are present in both bags with the minimum count.

Returns a new bag that is the intersection of two bags.
Only keeps elements that are present in both bags with the minimum count.
raw docstring

bag-unionclj/s

(bag-union & bags)

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close