1 ! Copyright (C) 2008 Slava Pestov.
2 ! See http://factorcode.org/license.txt for BSD license.
6 GENERIC: new-at ( value key assoc -- assoc' )
8 M: assoc new-at clone [ set-at ] keep ;
10 GENERIC: pluck-at ( key assoc -- assoc' )
12 M: assoc pluck-at clone [ delete-at ] keep ;
14 : changed-at ( key assoc quot -- assoc' )
15 [ [ at ] dip call ] [ drop new-at ] 3bi ; inline
17 : conjoined ( key assoc -- assoc' )