RosettaCodeData/Task/Strip-comments-from-a-string/Factor/strip-comments-from-a-string.factor

4 lines
101 B
Factor
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
USE: sequences.extras
: strip-comments ( str -- str' )
[ "#;" member? not ] take-while "" like ;