assocs vocabulary
Factor handbook » Vocabulary index


Documentation
Associative mapping operations

Metadata
Tags:collections
Authors:Daniel Ehrenberg


Words

Tuple classes
ClassSuperclassSlots
enumerated tupleseq


Mixin classes
assoc


Generic words
WordStack effect
>alist( assoc -- newassoc )
assoc-clone-like( assoc exemplar -- newassoc )
assoc-like( assoc exemplar -- newassoc )
assoc-size( assoc -- n )
at*( key assoc -- value/f ? )
clear-assoc( assoc -- )
delete-at( key assoc -- )
keys( assoc -- keys )
new-assoc( capacity exemplar -- newassoc )
set-at( value key assoc -- )
unzip( assoc -- keys values )
value-at*( value assoc -- key/f ? )
values( assoc -- values )


Ordinary words
WordStack effect
2cache( ... key1 key2 assoc quot: ( ... key1 key2 -- ... value ) -- ... value )
<enumerated>( seq -- enumerated )
?at( key assoc -- value/key ? )
?change-at( ..a key assoc quot: ( ..a value -- ..b newvalue ) -- ..b )
?delete-at( key assoc -- value/key ? )
?of( assoc key -- value/key ? )
?value-at( value assoc -- key/value ? )
all-keys?( ... assoc quot: ( ... key -- ... ? ) -- ... ? )
all-values?( ... assoc quot: ( ... value -- ... ? ) -- ... ? )
any-key?( ... assoc quot: ( ... key -- ... ? ) -- ... ? )
any-value?( ... assoc quot: ( ... value -- ... ? ) -- ... ? )
assoc-all?( ... assoc quot: ( ... key value -- ... ? ) -- ... ? )
assoc-any?( ... assoc quot: ( ... key value -- ... ? ) -- ... ? )
assoc-diff( assoc1 assoc2 -- diff )
assoc-diff!( assoc1 assoc2 -- assoc1 )
assoc-differ( key -- quot )
assoc-each( ... assoc quot: ( ... key value -- ... ) -- ... )
assoc-empty?( assoc -- ? )
assoc-filter( ... assoc quot: ( ... key value -- ... ? ) -- ... subassoc )
assoc-filter!( ... assoc quot: ( ... key value -- ... ? ) -- ... assoc )
assoc-filter-as( ... assoc quot: ( ... key value -- ... ? ) exemplar -- ... subassoc )
assoc-find( ... assoc quot: ( ... key value -- ... ? ) -- ... key value ? )
assoc-hashcode( n assoc -- code )
assoc-intersect( assoc1 assoc2 -- intersection )
assoc-intersect-all( seq -- assoc )
assoc-map( ... assoc quot: ( ... key value -- ... newkey newvalue ) -- ... newassoc )
assoc-map-as( ... assoc quot: ( ... key value -- ... newkey newvalue ) exemplar -- ... newassoc )
assoc-partition( ... assoc quot: ( ... key value -- ... ? ) -- ... true-assoc false-assoc )
assoc-reduce( ... assoc identity quot: ( ... prev key value -- next ) -- ... result )
assoc-reject( ... assoc quot: ( ... key value -- ... ? ) -- ... subassoc )
assoc-reject!( ... assoc quot: ( ... key value -- ... ? ) -- ... assoc )
assoc-reject-as( ... assoc quot: ( ... key value -- ... ? ) exemplar -- ... subassoc )
assoc-stack( key seq -- value )
assoc-subset?( assoc1 assoc2 -- ? )
assoc-union( assoc1 assoc2 -- union )
assoc-union!( assoc1 assoc2 -- assoc1 )
assoc-union-all( seq -- union )
assoc-union-as( assoc1 assoc2 exemplar -- union )
assoc=( assoc1 assoc2 -- ? )
assoc>map( ... assoc quot: ( ... key value -- ... elt ) exemplar -- ... seq )
at( key assoc -- value/f )
at+( n key assoc -- )
cache( ... key assoc quot: ( ... key -- ... value ) -- ... value )
change-at( ..a key assoc quot: ( ..a value -- ..b newvalue ) -- ..b )
collect-by( ... seq quot: ( ... obj -- ... key ) -- ... assoc )
collect-by!( ... assoc seq quot: ( ... obj -- ... key ) -- ... assoc )
delete-at*( key assoc -- value/f ? )
extract-keys( seq assoc -- subassoc )
filter-keys( assoc quot: ( key -- ? ) -- assoc' )
filter-values( assoc quot: ( value -- ? ) -- assoc' )
harvest-keys( assoc -- assoc' )
harvest-values( assoc -- assoc' )
inc-at( key assoc -- )
key?( key assoc -- ? )
map-keys( assoc quot: ( key -- key' ) -- assoc )
map-values( assoc quot: ( value -- value' ) -- assoc )
map>alist( ... seq quot: ( ... elt -- ... key value ) -- ... alist )
map>assoc( ... seq quot: ( ... elt -- ... key value ) exemplar -- ... assoc )
maybe-set-at( value key assoc -- changed? )
of( assoc key -- value/f )
push-at( value key assoc -- )
reduce-keys( ... assoc identity quot: ( ... prev elt -- ... next ) -- ... result )
reduce-values( ... assoc identity quot: ( ... prev elt -- ... next ) -- ... result )
reject-keys( assoc quot: ( key -- ? ) -- assoc' )
reject-values( assoc quot: ( value -- ? ) -- assoc' )
rename-at( newkey key assoc -- )
sift-keys( assoc -- assoc' )
sift-values( assoc -- assoc' )
substitute( seq assoc -- newseq )
sum-keys( assoc -- n )
sum-values( assoc -- n )
value-at( value assoc -- key/f )
value?( value assoc -- ? )
zip( keys values -- alist )
zip-as( keys values exemplar -- assoc )
zip-index( values -- alist )
zip-index-as( values exemplar -- assoc )
zip-with( ... seq quot: ( ... key -- ... value ) -- ... alist )
zip-with-as( ... seq quot: ( ... key -- ... value ) exemplar -- ... assoc )


Class predicate words
WordStack effect
assoc?( object -- ? )
enumerated?( object -- ? )


Files


Metadata files


Children from resource:extra
VocabularySummary
assocs.extras