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

[REBOL] Re: On ordinal and cardinal numbers...

From: jeff:rebol at: 7-Jul-2001 14:28

> The above fragment of code would still work. Anyone who > knew (or had learned) enough to write the 0-origin versions > could also write it as > > repeat i length? block [print [i - 1 pickz block i - 1]] > > Unless, of course, you're joining with me to extend the > list of suggested new words to include REPEATZ
Yes, I was offering up additional changes you'll want to make.
> .. so that one could write it as > > repeatz i length? block [print [i pickz block i]]
.. prints NONE on the last iteration I guess. You sure you don't want LENGTHZ? too? We've already got our bases mixed up.
> The only rule is "Be consistent." Don't mix origins unless > you know what you're doing.
Absolutely. Certainly new people (school kids) learning REBOL will be quite frustrated mixing the two bases going off different peices of example code, for instance, but they'll eventually get it straightened out. -jeff