equal

  • There are two equality operators in OCaml, = and ==, with corresponding inequality operators <> and !=. Operators = and <> examine structural equality whereas == and != examine physical equality.
  • OCaml library : Stdlib

prefix operator

( + ) 3 4;;
let add3 = ( + ) 3