Vocabulary
sets

Inputs
seta set
exemplara set


Outputs
set'a set


Word description
If the conversion is defined for the exemplar, converts the set into a set of the exemplar's class. This is not guaranteed to create a new set, for example if the input set and exemplar are of the same class.

Set implementations may optionally implement a method on this generic word. The default implementation returns its input set.

Examples
USING: sets prettyprint ; { 1 2 3 } HS{ } set-like .
HS{ 1 2 3 }


Definition

GENERIC: set-like ( set exemplar -- set' )


Methods