repetition? ( object -- ? )


Vocabulary
sequences

Inputs and outputs
objectan object
?a boolean


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

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

IN: sequences

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