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

[REBOL] Re: Exclude Problems

From: ammoncooke::yahoo at: 28-Sep-2001 5:53

Sorry, I forgot to fully omptimize that code here is a lot smaller version: excl-only: func [ "This is the Exclude function that doesn't exclude duplicates" block1 "The original block" block2 "The block to be 'excluded'" ][ tmp-block: copy block1 repeat val block2 [remove find tmp-block val] either not none? tmp-block[ return head tmp-block ][ return tmp-block ] ] Enjoy!! Ammon