Haskell version of Idris !-notation (bang notation)

前端 未结 3 543
伪装坚强ぢ
伪装坚强ぢ 2021-02-13 21:04

I\'ve had the luxury of learning a bit of Idris lately and one thing I\'ve found extremely convenient is the !-notation, which let\'s me shorten monadic code inside a do block s

3条回答
  •  孤城傲影
    2021-02-13 21:44

    An alternative to @chi's answer is liftA3 someFunction a b c (with join if needed).

提交回复
热议问题