Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: How to compose a string with a specific separator

From: Tom:Conlin:g:mail 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 ","]) >> skip >> ] ] >> >> == [ 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]]