REBOL 3.0

Picking the right PICK

Carl Sassenrath, CTO
REBOL Technologies
9-Feb-2009 17:16 GMT

Article #0173
Main page || Index || Prior Article [0172] || Next Article [0174] || 23 Comments || Send feedback

Today, while formatting R3 documents, I was jabbed by PICK:

In R2:

>> blk: [a b c d]
== [a b c d]
>> blk: skip blk 3
== [d]
>> pick blk -1
== c
>> pick blk 0
== none
>> pick blk 1
== d

But, in R3:

>> blk: [a b c d]
== [a b c d]
>> blk: skip blk 3
== [d]
>> pick blk -1
== b
>> pick blk 0
== c
>> pick blk 1
== d

The R3 change is an important improvement, because it makes PICK work smoothly... in a linear way.

However, is this too big a change? What do you think?

23 Comments

REBOL 3.0
Updated 25-Nov-2024 - Edit - Copyright REBOL Technologies - REBOL.net