Implementing the map function with a list of indices

前端 未结 0 574
误落风尘
误落风尘 2020-12-14 17:41

I want to implement the map function for specific indices only, like this:

mapFor :: (a -> a) -> [Int] -> [a] -> [a]

An example would

相关标签:
回答
  • 消灭零回复
提交回复
热议问题