These are chat archives for ramda/ramda

3rd
Mar 2018
Joey Figaro
@joeyfigaro
Mar 03 2018 06:09
Hey guys—how would mapWithIndex/addIndex(map) be expressed using hindley-milner/type signature?
Brad Compton (he/him)
@Bradcomp
Mar 03 2018 18:45
Indexable I :: ((a, Int) -> b) -> I a -> I b should do it. I say Indexable rather than Functor because many Functors aren't the sort of things that have indexes.
I don't know if maybe Foldable would cut it there...