What are some interesting uses of higher-order functions?

后端 未结 14 575
走了就别回头了
走了就别回头了 2021-01-30 00:55

I\'m currently doing a Functional Programming course and I\'m quite amused by the concept of higher-order functions and functions as first class citizens. However, I can\'t yet

14条回答
  •  说谎
    说谎 (楼主)
    2021-01-30 01:33

    There are several examples here: http://www.haskell.org/haskellwiki/Higher_order_function

    I would also recommend this book: http://www.cs.nott.ac.uk/~gmh/book.html which is a great introduction to all of Haskell and covers higher order functions.

    Higher order functions often use an accumulator so can be used when forming a list of elements which conform to a given rule from a larger list.

提交回复
热议问题