Liking cljdoc? Tell your friends :D

bifurcan-clj.set

Functions for working with sets.

Functions for working with sets.
raw docstring

addclj

(add xs x)

Adds an element to the set.

Adds an element to the set.
sourceraw docstring

contains-all?clj

(contains-all? s other)

True if this set contains all keys in the given map or set.

True if this set contains all keys in the given map or set.
sourceraw docstring

contains-any?clj

(contains-any? s other)

True if this set contains any keys in the given map or set.

True if this set contains any keys in the given map or set.
sourceraw docstring

contains?clj

(contains? s x)

Does the set contain x?

Does the set contain x?
sourceraw docstring

differenceclj

(difference a b)

Subtracts all elements of b from a.

Subtracts all elements of b from a.
sourceraw docstring

elementsclj

(elements s)

A list of all elements in the set.

A list of all elements in the set.
sourceraw docstring

emptyclj

The empty set.

The empty set.
sourceraw docstring

Fromcljprotocol

fromclj

(from x)

Coerces x to a set.

Coerces x to a set.
source

index-ofclj

(index-of xs x)

Returns a the index of the given element in the set, or nil if it's absent.

Returns a the index of the given element in the set, or nil if it's absent.
sourceraw docstring

intersectionclj

(intersection a b)

Takes the intersection of sets a and b.

Takes the intersection of sets a and b.
sourceraw docstring

removeclj

(remove xs x)

Removes an element from the set.

Removes an element from the set.
sourceraw docstring

setclj

(set)
(set hash-fn equals-fn)

Constructs a new Set. Optionally takes a function for hashing and a functionf or equality.

Constructs a new Set. Optionally takes a function for hashing and a
functionf or equality.
sourceraw docstring

unionclj

(union a b)

Takes the union of two sets.

Takes the union of two sets.
sourceraw docstring

value-equalityclj

(value-equality s)

The equality semantics used by the set

The equality semantics used by the set
sourceraw docstring

value-hashclj

(value-hash s)

The hash function used by the set

The hash function used by the set
sourceraw docstring

zipclj

(zip xs f)

Constructs a map which has a corresponding value (f x) for each x in the set xs.

Constructs a map which has a corresponding value (f x) for each x in the set
xs.
sourceraw docstring

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

× close