Ocaml_operators(3)
π NAME π
Ocaml_operators β Precedence level and associativity of operators. This is from the OCaml library, bestie, and it's literally your little cheat sheet for operator precedence vibes. π«Άβ¨
π§ Module π§
Module Ocaml_operators
β¨ Documentation β¨
Module Ocaml_operators : sig end
π Precedence level and associativity of operators π
Okay so the following table lists the precedence level of all operator classes, from the highest to the lowest precedence. A few other syntactic constructions are also listed as references, iykyk. π
- Associativity:
-(none) β operator class:!..,~.. - Associativity:
-(none) β operator class:.(),.[],.{} - Associativity:
leftβ operator class:#.. - Associativity:
leftβ operator class:function application - Associativity:
-(none) β operator class:-,-. - Associativity:
rightβ operator class:**..,lsl,lsr,asr - Associativity:
leftβ operator class:*..,/..,%..,mod,land,lor,lxor - Associativity:
leftβ operator class:+..,-.. - Associativity:
rightβ operator class::: - Associativity:
rightβ operator class:@..,^.. - Associativity:
leftβ operator class:=..,<..,>..,|..,&..,$..,!= - Associativity:
rightβ operator class:&,&& - Associativity:
rightβ operator class:or,|| - Associativity:
-(none) β operator class:, - Associativity:
rightβ operator class:<-,:= - Associativity:
-(none) β operator class:if - Associativity:
rightβ operator class:;
That's the whole vibe check, bestie. This page was made with OCamldoc, dated 2026-06-22, and it's Ocaml_operators(3) β periodt. ππ
π¦ where this page comes from
- arch rolling: ocaml 5.5.0-1 Β· LGPL2.1 AND custom: QPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms