[REBOL] Re: How to compose a string with a specific separator
From: Tom:Conlin:gm:ail at: 12-Jul-2007 10:21
Carlos Lorenz wrote:
> Hi ppl
> a: [1 2 3]
>> parse a [any [blk: skip (unless empty? next blk [insert next blk ","])
>> ] ]
>> == [ 1 "," 2 "," 3" ]
> Whenever I read things like that I feel like I miss a lot about the power of
> REBOL parse dialect.
> I=B4ll leave a suggestion to the gurus on parsing: please write some "parsing
> for dummies" tutorial. It would be of great help!
slightly shorter version of Max's
parse a [any[skip here: (all[not tail? here insert here ","])skip]]