REBOL 3.0

Changes to ordinal functions

Carl Sassenrath, CTO
REBOL Technologies
21-Aug-2006 1:15 GMT

Article #0039
Main page || Index || Prior Article [0038] || Next Article [0040] || 7 Comments || Send feedback

The ordinal functions are first, second, third, ..., last, etc.

There are two changes of interest:

 Change1Ordinals are now of type native! not action!
 ReasonPolymorphic application of these functions across all series datatypes improves the implementation.

And:

 Change2Ordinals no longer throw an error on a past-end condition.
 ReasonBehavior is now similar to pick, returning none when past end. Experience has shown that making the ordinals throw errors when past-end was not convenient for the most common coding practices.

7 Comments

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