-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 1-Jun-07, at 3:57 PM, Bradley Lucier wrote:
How does one do parmap, found in the following blog entry by Bill Clementson, in Termite?
Untested:
(define (pmap f lst) (let ((parent (self))) (map (lambda (pid) (recv ((,pid reply) reply))) (map (lambda (x) (spawn (lambda () (! parent (list (self) (f x)))))) lst))))
Marc