(add set square)
Adds a new square to a square set.
Adds a new square to a square set.
(complement set)
(complement set board-mask)
The complement of a square set, i.e all squares that are not members of the input set. The optional 'board-mask' parameter can be used to restrict the universe of squares in the case of boards of sizes smaller than 8x8.
The complement of a square set, i.e all squares that are *not* members of the input set. The optional 'board-mask' parameter can be used to restrict the universe of squares in the case of boards of sizes smaller than 8x8.
(contains? set square)
Tests whether the square set contains the given square.
Tests whether the square set contains the given square.
(count set)
The number of elements of the square set.
The number of elements of the square set.
(difference set)
(difference set-1 set-2)
(difference set-1 set-2 & sets)
The set of squares that are members of the first set, but not members of any of the remaining sets.
The set of squares that are members of the first set, but not members of any of the remaining sets.
(empty? set)
True if the set has no elements.
True if the set has no elements.
(intersection & sets)
The intersection of one or more square sets, i.e. the set of all squares that are members of all the input sets.
The intersection of one or more square sets, i.e. the set of all squares that are members of all the input sets.
(pprint set)
Pretty-print a square set to the standard output, for debugging.
Pretty-print a square set to the standard output, for debugging.
(remove set square)
Removes a square from a square set, if the square is already there. If the square is not present in the square set, the set is returned unchanged.
Removes a square from a square set, if the square is already there. If the square is not present in the square set, the set is returned unchanged.
(square-set & squares)
Creates a square-set with the given squares as elements.
Creates a square-set with the given squares as elements.
(squares set)
A vector containing the members of a square set.
A vector containing the members of a square set.
(subset? set-1 set-2)
True if all members of set-1 are also members of set-2.
True if all members of set-1 are also members of set-2.
(superset? set-1 set-2)
True if all members of set-2 are also members of set-1.
True if all members of set-2 are also members of set-1.
(union & sets)
The union of one or more square sets, i.e. the set of squares that are members of at least one of the input sets.
The union of one or more square sets, i.e. the set of squares that are members of at least one of the input sets.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close