Skip to content

nulligor/pmapv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pmapv

A parallel map into vector

Pretty much a combination of clojure's pmap and mapv

Usage: pip

from pmapv import pflatmapv, pmapv

add1 = lambda x: x + 1

pflatmapv(add1, [[1], [2], [3]])
# => [2, 3, 4]

pmapv(add1, [1, 2, 3])
# => [2, 3, 4]