Das Eingeben dieses Codes in Ocaml-Toplevel führt zu einem Syntaxfehler.Ocaml-Syntaxfehler: Warum sind in Funktionsanwendung Klammern (wenn ...) notwendig?
(fun n -> n + 1) if true then 1 else 2
Aber dieser Code ist in Ordnung.
(fun n -> n + 1) (if true then 1 else 2)
Warum sind Klammern erforderlich?