factor/extra/str-fry/str-fry.factor

4 lines
191 B
Factor
Raw Normal View History

2009-04-29 22:51:19 -04:00
USING: kernel sequences splitting strings.parser ;
IN: str-fry
: str-fry ( str -- quot ) "_" split unclip [ [ rot glue ] reduce ] 2curry ;
SYNTAX: I" parse-string rest str-fry over push-all ;