[REBOL] Re: <MAP> Passing word in a block as an argument
From: tim::johnsons-web::com at: 10-Feb-2003 7:38
* Andrew Martin <[Al--Bri--xtra--co--nz]> [030209 19:55]:
> Tim wrote:
> > So: how do I get the values of a,b,c and d?
>
> >> blk: [1 2 3 4 5 6 7 8 9 10 11 12]
> == [1 2 3 4 5 6 7 8 9 10 11 12]
> >> cols: [a b c d]
> == [a b c d]
> >> map blk func cols [print [a b c d]]
> 1 2 3 4
> 5 6 7 8
> 9 10 11 12
>
> Use 'map. :)
We have to continue this 'map thread as soon as I
have time. I've been looking at python's
"list comprehension", I think it's worth
running some comparisons.
Keep meaning to check that one out.
-tim-
> Andrew Martin
> ICQ: 26227169 http://valley.150m.com/
> -><-
>
> --
> To unsubscribe from this list, please send an email to
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
--
Tim Johnson <[tim--johnsons-web--com]>
http://www.alaska-internet-solutions.com
http://www.johnsons-web.com