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?
Asked
Active
Viewed 187 times
2

eyelash
- 3,197
- 25
- 33
1 Answers
3
The symbol in Lean is the unicode ∘
, which is notation for Function.comp
.

It'sNotALie.
- 22,289
- 12
- 68
- 103
-
What's the shortcut to enter this symbol in VSCode? – eyelash Sep 28 '22 at 16:23
-
2\comp, \circ should both work, iirc – It'sNotALie. Sep 28 '22 at 16:57
-
is there a notation for forward function composition ? aka f >> g = \x -> g (f x) – nicolas Aug 18 '23 at 21:14