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

[REBOL] Re: Confused???

From: greggirwin:mindspring at: 14-Jul-2002 14:03

Hi Ed, << I've created a small program to scan emails from my inbox. It works fine until I try and remove them. Without the REMOVE command, it parses all emails in the inbox. Once I add the REMOVE command, it takes several passes to get everything cleared out. >> It's a combination of FORALL and REMOVE that's trippnig you up. FORALL steps through the series (you can see the source for it BTW. It's a mezzanine) using NEXT and REMOVE returns the series at the location *after* the remove, so you're skipping every other element when you combine them.
>> b: [1 2 3 4 5 6]
== [1 2 3 4 5 6]
>> forall b [print first b remove b]
1 3 5 HTH! --Gregg