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