Handbook
Glossary
biassoc
Factor handbook
»
The language
»
Collections
»
Bidirectional assocs
Next:
biassoc? ( object -- ? )
Vocabulary
biassocs
Class description
The class of bidirectional assocs. Bidirectional assoc are implemented by combining two assocs, with one the transpose of the other.
Definition
IN:
biassocs
TUPLE:
biassoc
from to
;
Methods
USING:
accessors
assocs
biassocs
;
M:
biassoc
>alist
from>>
>alist
;
USING:
accessors
assocs
biassocs
;
M:
biassoc
assoc-size
from>>
assoc-size
;
USING:
accessors
assocs
biassocs
;
M:
biassoc
at*
from>>
at*
;
inline
USING:
accessors
assocs
biassocs
kernel
;
M:
biassoc
clear-assoc
[
from>>
clear-assoc
]
[
to>>
clear-assoc
]
bi
;
USING:
accessors
biassocs
kernel
;
M:
biassoc
clone
[
from>>
]
[
to>>
]
bi
[
clone
]
bi@
biassoc
boa
;
USING:
assocs
biassocs
;
M:
biassoc
delete-at
no-biassoc-deletion
;
USING:
accessors
assocs
biassocs
;
M:
biassoc
keys
from>>
keys
;
USING:
assocs
biassocs
hashtables
kernel
;
M:
biassoc
new-assoc
drop
[
<hashtable>
]
[
<hashtable>
]
bi
biassoc
boa
;
USING:
accessors
assocs
biassocs
kernel
;
M:
biassoc
set-at
[
from>>
set-at
]
[
swapd
to>>
set-at-once
]
3bi
;
USING:
accessors
assocs
biassocs
;
M:
biassoc
value-at*
to>>
at*
;
inline
USING:
accessors
assocs
biassocs
;
M:
biassoc
values
from>>
values
;