Is there an inverse of the Haskell $ operator?

前端 未结 6 418
感情败类
感情败类 2021-02-01 13:44

A quick question, is there an operator in Haskell that works like the dollar sign but gives precedence to the left hand side. I.E. instead of

f (x 1) 
         


        
6条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-01 14:24

    As of GHC 7.10 (base 4.8.0.0), & is in Data.Function: https://hackage.haskell.org/package/base-4.8.0.0/docs/Data-Function.html

提交回复
热议问题