What is the C# equivalent of map function in Haskell

后端 未结 5 1000
礼貌的吻别
礼貌的吻别 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:48

    And to answer a question you didn't ask, the Haskell equivalent of binding the "sequence" monad is called SelectMany in C#. See Wes Dyer's great article on this for details:

    http://blogs.msdn.com/wesdyer/archive/2008/01/11/the-marvels-of-monads.aspx

提交回复
热议问题