assocs: kv-with word.
parent
a96ad1b227
commit
2e65fabf30
|
@ -52,6 +52,9 @@ ERROR: key-exists value key assoc ;
|
|||
drop set-at
|
||||
] if ;
|
||||
|
||||
: kv-with ( obj assoc quot -- assoc curried )
|
||||
swapd [ [ -rot ] dip call ] 2curry ; inline
|
||||
|
||||
<PRIVATE
|
||||
|
||||
: (sequence>assoc) ( seq map-quot insert-quot assoc -- assoc )
|
||||
|
|
Loading…
Reference in New Issue