3 ms·
The pipe operator eliminates the syntax problem. Ocaml example: let increment x = x + 1 let square x = x \* x let to_string x = string_of_int x let r
by roland-s 1y ago
The pipe operator eliminates the syntax problem.
Ocaml example:
let increment x = x + 1
let square x = x \* x
let to_string x = string_of_int x
let result = 5 |> increment |> square |> to_string
(\* result will be "36" \*)