Scala: Parallel Collection
list.par.map(_ + 42)
val parArray = (1 to 1000000).toArray.par
parArray.fold(0)(_ + _)
(1 to 1000).toList.par.reduce(+)
http://ift.tt/XjMdqE
you shouldn’t pay for what you don’t use.
http://ift.tt/1dhUdZN
http://ift.tt/1F33s4f
list.par.map(_ + 42)
val parArray = (1 to 1000000).toArray.par
parArray.fold(0)(_ + _)
(1 to 1000).toList.par.reduce(+)
http://ift.tt/XjMdqE
you shouldn’t pay for what you don’t use.
http://ift.tt/1dhUdZN
http://ift.tt/1F33s4f
from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1Qh3QxM
via LifeLong Community
No comments:
Post a Comment