Skip to content

Commit

Permalink
Temporary patch for assoc-map on linked-assoc
Browse files Browse the repository at this point in the history
  • Loading branch information
jonenst committed Apr 5, 2014
1 parent dbc6c37 commit b54bffd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions basis/linked-assocs/linked-assocs.factor
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,10 @@ M: linked-assoc clone
[ assoc>> clone ] [ dlist>> clone ] bi
linked-assoc boa ;

: >linked-assoc ( assoc -- linked-assoc )
>alist [ <linked-hash> ] dip assoc-union! ;

M: linked-assoc assoc-like
drop dup linked-assoc? [ >linked-assoc ] unless ; inline

INSTANCE: linked-assoc assoc

0 comments on commit b54bffd

Please sign in to comment.