2make-tuple ( x y class assoc -- tuple )
Tuple-constructing combinators

Prev:1make-tuple ( x class assoc -- tuple )
Next:3make-tuple ( x y z class assoc -- tuple )


Vocabulary
combinators.tuple

Inputs
xan object
yan object
classa class
assocan assoc


Outputs
tuplea tuple


Word description
Constructs a tuple of class by calling the quotations making up the values of assoc on x and y, assigning the result of each call to the slot named by the corresponding key. The quotations must have the effect ( x y -- slot-value ). The order in which the quotations are called is undefined.

See also
1make-tuple, 3make-tuple, nmake-tuple

Definition

: 2make-tuple ( x y class assoc -- tuple ) 2 nmake-tuple ;
inline