Hi Kobi, Do not override the nth and set-nth generic words for this purpose. These words should only be used for collections with integer indices 0..length-1.
Slava On Thu, Jun 3, 2010 at 5:48 PM, Kobi Lurie <[email protected]> wrote: > Hi guys, so I took it up on Slava's words, > and tried. > http://paste.factorcode.org/paste?id=1713 > > I haven't tested much as I just wrote it. > But it seems like it works. (i think the calculation is ok too, but my > math is lousy so..) > > there are two versions, one is based on an array, the other on a hashtable. > anyway, you can see it as public domain, if you want to refine and put > in the library, go ahead. > > kobi > > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Factor-talk mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/factor-talk > ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
