Liking cljdoc? Tell your friends :D

telsos.lib.algorithms.bags


bag-conjclj

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

bag-countclj

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

bag-differenceclj

(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

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

bag-intersectionclj

(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

(bag-union & bags)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close