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

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

From: g:santilli:tiscalinet:it at: 6-Jul-2001 21:50

Hello Joel! On 06-Lug-01, you wrote: JN> (Not confusion, IMHO, just a plea that there really are some JN> legitimate roles for the poor orphan.) (I was surely not referring to you about confusion. :) This seems to be 2.3 times slower than pick: ofs-pick: func [series offset] [pick skip series offset 1] The following is only a bit faster, but has a hole in -1 which is way worse that the hole in 0 of pick: ofs-pick: func [series offset] [pick series offset + 1] If you put the code of the first ofs-pick inline, it is only 1.6 times slower (with the + 1 we go down to 1.3); provided the cases in which such code is needed are few, I think the overhead is not that great. Do you think this is worth adding new natives? (I'm really asking!) Regards, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/