Is there an inverse of the Haskell $ operator?

前端 未结 6 433
感情败类
感情败类 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条回答
  •  猫巷女王i
    2021-02-01 14:24

    Can't you just redefine $.

    let ($) x f = f x
    

    Or just choose a different operator, like $$

提交回复
热议问题