UNPKG
p
Version:
latest (0.2.0)
0.2.0
0.1.1
0.1.0
0.0.4
0.0.3
0.0.2
0.0.1
pattern matching in javascript for asyncronous iteration
github.com/dscape/p
dscape/p
p
/
samples
/
zip_with.test.js
7 lines
(6 loc)
•
188 B
JavaScript
View Raw
1
2
3
4
5
6
7
/* [
'1:2'
,
'3:4'
,
'5:6'
] */ var zip =
require
(
'./hof'
).zip_with; zip(
function
concat
(a,b)
{
return
a +
':'
+ b; }, [
1
,
3
,
5
], [
2
,
4
,
6
,
8
], [],
function
(ac)
{ console.
error
(ac); });