On 15-Aug-07, at 10:16 PM, Chris Double wrote:
> There are a number of ways you can do this. The easiest is probably
> use use futures and have the quotation return a value and wait on that
> value:
>
> { [ ... f ] [ ... f ] [ ... f ] } [ future ] map
>
> Then when you want to join, given the sequence of futures:
>
> [ ?future drop ] each
Cool, thanks!
I generalized this a bit and added a new word to extra/concurrency:
: parallel-map ( seq quot -- newseq )
[ curry future ] curry map [ ?future ] map ;
Slava
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk