1 min readAug 20, 2019
This is getting a bit ahead of ourselves, but if you get to https://medium.com/dailyjs/functional-js-5-partial-application-currying-da30da4e0cc3 and understand the concept of currying, you could implement a curried map
function (or get the one from Ramda) to get precisely the functionality you mean:
This would be perfectly understandable for programmers familiar with the functional style.
Let me know if this makes sense!