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

[REBOL] Re: looping - path problem

From: pwawood:gm:ail at: 25-Apr-2006 14:05

You could use foreach to iterate through one series to find the number of bulls-eyes (but you have to handle the iteration of the other series yourself) and then use intersect of the two series to determine the number of shots: foreach attempt ans [ if attempt = first target [bulls: bulls + 1] ans: next ans ] shots: shots + length? intersect head ans target Regards Peter On Tuesday, Apr 25, 2006, at 13:03 Asia/Kuala_Lumpur, Rosemary de Dear wrote: