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

[REBOL] Re: Mapping series

From: greggirwin:mindspring at: 8-Mar-2006 13:22

Hi Jeff, JM> So, I'm sure REBOL has some sort of support for this, but I have yet to find JM> it. Does REBOL have any built-in support for traditional mapping functions JM> that are found in Lisp? Oddly enough, there isn't a native one. It has come up a number of times, and many folks have written their own; I don't know why RT hasn't included one yet. It's possible they're still looking for the right design. e.g. with refinements and such, I think there's more to it than just do the same thing Lisp does, when creating a standard function. Here's one, written by Larry Palmiter, that I use sometimes: map: apply: func [fn blk args /local result][ result: copy [] repeat el blk [append/only result fn :el args] result ] -- Gregg