Function application function in Haskell

前端 未结 3 812
说谎
说谎 2020-12-20 18:28

Let\'s say I have a list of functions

functions = [f, g, h]

each one with type a -> a

I also have a list of values

3条回答
  •  不知归路
    2020-12-20 18:55

    zipWith ($) f v
    

    $ is function application. The fact that it has particularly low precedence throws people for a loop sometimes.

提交回复
热议问题