In the book Real World OCaml, this section explains a few things about operators.
However, the following code is extremely confusing:
let (|>) x f = f x
and
let (^>) x f = f x
I do not see any difference between these two definitions. How can you tell that the first operator is left associative and the second operator is right associative?