adventofcode-2016/day11/test.js

11 lines
213 B
JavaScript
Raw Normal View History

2016-12-13 23:09:27 +00:00
var p = require("pararr");
//var p = new Parallel([1, 2]);
square = (num)=>([1, Math.pow(num, 2)]);
merge = ([a, b])=>(a.concat(b));
p.map([1, 2, 3], square, (err, data)=>{
console.log(data);
p.destroy();
});