(->integer-random-access s)
Given a set (or bitset), return a efficient, sorted random access structure. This assumes the set contains integers.
Given a set (or bitset), return a efficient, sorted random access structure. This assumes the set contains integers.
(bitset)
(bitset data)
(bitset start end)
Create a java.util.Bitset. The two argument version assumes you are passing in the start, end of a monotonically incrementing range.
Create a java.util.Bitset. The two argument version assumes you are passing in the start, end of a monotonically incrementing range.
(cardinality s)
Return the cardinality (size) of a given set.
Return the cardinality (size) of a given set.
(contains-fn s)
Return an IFn that returns efficiently returns true if the set contains a given element.
Return an IFn that returns efficiently returns true if the set contains a given element.
(contains-range? s sidx eidx)
bitset-specific query that returns true if the set contains all the integers from sidx to eidx non-inclusive.
bitset-specific query that returns true if the set contains all the integers from sidx to eidx non-inclusive.
(intersects-range? s sidx eidx)
bitset-specific query that returns true if the set contains any the integers from sidx to eidx non-inclusive.
bitset-specific query that returns true if the set contains any the integers from sidx to eidx non-inclusive.
(java-hashset)
(java-hashset data)
Return a java hashset
Return a java hashset
(map-invert m)
invert a map such that the keys are the vals and the vals are the keys
invert a map such that the keys are the vals and the vals are the keys
(max-set-value s)
Given a bitset, return the maximum set value. Errors if the bitset is empty.
Given a bitset, return the maximum set value. Errors if the bitset is empty.
(min-set-value s)
Given a bitset, return the minimum set value. Errors if the bitset is empty.
Given a bitset, return the minimum set value. Errors if the bitset is empty.
(xor l r)
set xor - difference of intersection from union
set xor - difference of intersection from union
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close