回答編集履歴
1
不要コードの除去
answer
CHANGED
@@ -71,7 +71,6 @@
|
|
71
71
|
|
72
72
|
```javascript
|
73
73
|
function flat (l) { return l.reduce((a, v) => a.concat(v), []); }
|
74
|
-
function map (f, l) { return l.map(f); }
|
75
74
|
function apply (fs, l) { return flat(fs.map(f => l.map(f))); }
|
76
75
|
|
77
76
|
apply([x => x * 2, x => x + 1], [1, 2, 3]);
|