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

[REBOL] Re: Multi-searches

From: chalz:earthlink at: 21-Feb-2002 0:01

I'm sure someone else has gotten to this already (I only get to my email about once every 24hrs), but in case someone else hasn't mentioned this, there's always the good old method of (I know this isn't all totally proper REBOL, or good code): test: x list: [a b c d ...] idxs: [] i: 0 foreach val list [ i: i + 1 if val = test [join idxs i] ] return idxs I'm sure there are far more elegant methods in REBOL, but, I was 'trained' in C and C-style systems.