Haskell How to apply a function to each item in a list individually?

前端 未结 0 401
执念已碎
执念已碎 2021-02-06 11:19

Suppose I have a list of any size.

list = [a, b, c]

how could I get the output.

applyI f list
>> [[(f a), b, c], [a, (f b),          


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