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

[REBOL] Re: COLLECTing results

From: AJMartin:orcon at: 24-Jul-2003 18:51

Brett wrote:
> P.S Andrew: thanks for the tip regarding the "not only".
No problem! :) I've got this for my version of 'Collect:
>> source Collect
Collect: func [ "Collects the results of block evaluations." Block [block!] "The block to 'do." /Only "Inserts the result as a series." /local Results][ Results: copy [] compose/deep/only [ head (pick [insert insert/only] not Only) tail Results do (Block) ] ] I think filtering could be just a word! (or a path!) between 'Collect and the block! value. Andrew J Martin Writing in Orthodocs Rebol... ICQ: 26227169