Liking cljdoc? Tell your friends :D

clj-chess.square-set


addclj

(add set square)

Adds a new square to a square set.

Adds a new square to a square set.
sourceraw docstring

complementclj

(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.
sourceraw docstring

contains?clj

(contains? set square)

Tests whether the square set contains the given square.

Tests whether the square set contains the given square.
sourceraw docstring

countclj

(count set)

The number of elements of the square set.

The number of elements of the square set.
sourceraw docstring

differenceclj

(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.
sourceraw docstring

empty?clj

(empty? set)

True if the set has no elements.

True if the set has no elements.
sourceraw docstring

firstclj

(first set)
source

intersectionclj

(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.
sourceraw docstring

pprintclj

(pprint set)

Pretty-print a square set to the standard output, for debugging.

Pretty-print a square set to the standard output, for debugging.
sourceraw docstring

removeclj

(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.
sourceraw docstring

remove-firstclj

(remove-first set)
source

square-setclj

(square-set & squares)

Creates a square-set with the given squares as elements.

Creates a square-set with the given squares as elements.
sourceraw docstring

squaresclj

(squares set)

A vector containing the members of a square set.

A vector containing the members of a square set.
sourceraw docstring

subset?clj

(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.
sourceraw docstring

superset?clj

(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.
sourceraw docstring

unionclj

(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.
sourceraw docstring

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

× close