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                         

-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to