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

[REBOL] Re: Cunning use of [], () & {} in R# and in future? Rebol versions?

From: greggirwin:mindspring at: 19-Oct-2003 9:51

Hi Volker, VN> Gregg, cool . but how about parse?
>>> b: [1 2 3 4 5 6 7 8 9 10 11 12 13 14]
VN> == [1 2 3 4 5 6 7 8 9 10 11 12 13 14]
>>> parse b[ 4 skip copy v 2 skip]
VN> == false
>>> v
VN> == [5 6] That would work well for a single slice, but I'd still wrap it in a function to make the meaning clearer. For multiple slices, it would get ugly real fast I think. -- Gregg