match: make-assoc: -1

db4
Doug Coleman 2012-07-19 17:35:00 -07:00
parent 23d6c4fe4a
commit d9da6e4781
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ SYNTAX: MATCH-VARS: ! vars ...
dup word? [ "match-var" word-prop ] [ drop f ] if ;
: set-match-var ( value var -- ? )
dup namespace key? [ get = ] [ set t ] if ;
building get ?at [ = ] [ ,, t ] if ;
: (match) ( value1 value2 -- matched? )
{
@ -40,7 +40,7 @@ SYNTAX: MATCH-VARS: ! vars ...
} cond ;
: match ( value1 value2 -- bindings )
[ (match) ] H{ } make-assoc swap [ drop f ] unless ;
[ (match) ] H{ } make swap [ drop f ] unless ;
MACRO: match-cond ( assoc -- )
<reversed>