functional-programmingfunction-compositionlean

How to do function composition in Lean 4?


If I have two functions f and g, in Haskell I can compose them by writing g.f. How do I do the same thing in Lean 4?


Solution

  • The symbol in Lean is the unicode , which is notation for Function.comp.