Another fix

release
Slava Pestov 2007-10-28 00:42:36 -04:00
parent 748cb2c318
commit 4a2a214cb0
1 changed files with 3 additions and 1 deletions

View File

@ -61,4 +61,6 @@ MACRO: match-cond ( assoc -- )
} cond ; } cond ;
: match-replace ( object pattern1 pattern2 -- result ) : match-replace ( object pattern1 pattern2 -- result )
-rot match [ replace-patterns ] bind ; -rot
match [ "Pattern does not match" throw ] unless*
[ replace-patterns ] bind ;