by ozuly · 2y ago · 0 comments
R.map(arr, (x) => x + 1)
and as part of a pipe in a data-last way: R.pipe(
[0, 1, 2, 3, 4, 5, 6],
R.map((x) => x + 1),
R.filter((x) => x % 2 === 0),
R.take(1)
)
I've really enjoyed using it and would recommend it to anyone who would like to write their typescript in a more functional way.No comments yet.