about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--js/pipe.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/pipe.js b/js/pipe.js
index 69ccae3..ace5fb9 100644
--- a/js/pipe.js
+++ b/js/pipe.js
@@ -1,2 +1,6 @@
 const pipe = (...args) => args.reduce((acc, el) => el(acc));
 
+/* alt implementation
+const pipe = (...fns) => (initialValue) =>
+  fns.reduce((acc, fn) => fn(acc), initialValue);
+*/
\ No newline at end of file
uthor hut <hut@lavabit.com> 2013-03-01 11:57:13 +0100 committer hut <hut@lavabit.com> 2013-03-01 11:57:13 +0100 moved fsobject.* to container.*' href='/akspecs/ranger/commit/ranger/container/file.py?h=v1.9.0b1&id=07262c1936ba5ccf14b8698126aa51e177bf793c'>07262c19 ^
437c12d9 ^
ae24898a ^
b3d031a9 ^
76791a70 ^
d3c262a9 ^
d24e6155 ^
437c12d9 ^
d1a1173d ^














437c12d9 ^

13370392 ^
437c12d9 ^
d1a1173d ^





437c12d9 ^

ab41c776 ^
6154e8d6 ^
d1a1173d ^



d3c262a9 ^
3e0aa7a0 ^
b3d031a9 ^
3e0aa7a0 ^
d1a1173d ^

b3d031a9 ^
d1a1173d ^
b3d031a9 ^


d1a1173d ^
bedfed3d ^
d1a1173d ^
b3d031a9 ^

d3c262a9 ^
d1a1173d ^



437c12d9 ^
b3d031a9 ^
d1a1173d ^





f286cbde ^

23345a78 ^
d1a1173d ^


263be095 ^
d1a1173d ^









437c12d9 ^
d1a1173d ^

085ea1e9 ^

eb26387a ^



5b2f1c8c ^








1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109