How can I access iteration index in Ramda.map
Check out addIndex: Creates a new list iteration function from an existing one by adding two new parameters to its callback function: the current index, and the entire list. This would turn, for instance, Ramda’s simple map function into one that more closely resembles Array.prototype.map. Note that this will only work for functions in which … Read more