unzip ( assoc -- keys values )
Factor handbook » The language » Collections » Associative mapping operations » Associative mapping conversions

Prev:zip-with-as ( ... seq quot: ( ... key -- ... value ) exemplar -- ... assoc )


Vocabulary
assocs

Inputs
assocan assoc


Outputs
keysa sequence
valuesa sequence


Word description
Outputs an array of keys and an array of values of the input assoc.

Examples
USING: prettyprint assocs kernel ; { { 1 4 } { 2 5 } { 3 6 } } unzip [ . ] bi@
{ 1 2 3 } { 4 5 6 }


See also
zip, zip-as, zip-index, zip-index-as, zip-with, zip-with-as

Definition

GENERIC: unzip ( assoc -- keys values )


Methods