Another fix
parent
748cb2c318
commit
4a2a214cb0
|
@ -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 ;
|
||||||
|
|
Loading…
Reference in New Issue