What is the C# equivalent of map function in Haskell

后端 未结 5 1001
礼貌的吻别
礼貌的吻别 2021-02-01 00:34

map function in Haskell has two input parameters. The first parameter is a function and second parameter is a list. The map function applies the function passed as input paramet

5条回答
  •  孤城傲影
    2021-02-01 00:42

    Since Select and SelectMany were already mentioned, I'll answer an additional question you didn't ask: fold is found as Aggregate.

    Now everyone reading this should be fully equipped to go be That Guy who writes Language X using Language Y idioms... so for the sake of your fellow C# programmers, don't get too carried away.

提交回复
热议问题