There's an indexedMap function for the provided List type: ( http://package.elm-lang.org/packages/elm-lang/core/2.0.0/List#indexedMap )
indexedMap : (Int -> a -> b) -> List a -> List b
Same as map but the function is also applied to the index of each element (starting at zero).
indexedMap (,) ["Tom","Sue","Bob"] == [ (0,"Tom"), (1,"Sue"), (2,"Bob") ]
I made a Grid type with a definition of type alias Grid a = List (List a)
I want to make a similar indexedMap function for this Grid type with a signature of indexedMap : ((Int, Int) -> a -> b) -> Grid a -> Grid b, but I'm note sure how to do it.