combinations? ( object -- ? )


Vocabulary
math.combinatorics

Inputs and outputs
objectan object
?a boolean


Word description
Tests if the object is an instance of the combinations class.

Definition
USING: classes.tuple.private kernel slots.private ;

IN: math.combinatorics

: combinations? ( object -- ? )
dup tuple?
[ layout-of 7 slot \ combinations eq? ] [ drop f ] if ;