Guest User

Untitled

a guest
Dec 10th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. const list = [1, 2, 3];
  2. const map = arr => fn => arr.map(fn);
  3. const double = i => i * 2;
  4. map(list)(double); //[2, 4, 6]
Add Comment
Please, Sign In to add comment