Created
April 12, 2021 13:28
-
-
Save Octachron/8db5ce9d8e24368360344f337e294aef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type 'a term = | |
| Var of 'a | |
| App of 'a term * 'a term | |
let rec pp pp_elt ppf = function | |
| Var x -> pp_elt ppf x | |
| App(f,x) -> | |
Format.fprintf ppf "%a(%a)" (pp pp_elt) f (pp pp_elt) x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment