pmap   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/examples/core/xthread.xtm

Implementation

(bind-func pmap:[List{!a}*,[!a,!b]*,List{!b}*]*
  (lambda (func xs)
    (let ((futures (map (lambda (x) (async func x)) xs))
          (results (map (lambda (y) (y)) futures)))
      results)))


Back to Index

Similar Entries