3 ms·
Surely you mean OCaml's pipe operator? They have had it since at least 2013: http://ocaml.org/releases/4.01.0.html http://ocaml.org/releases/4.01.0.html I woul
by yorwba 9y ago
Surely you mean OCaml's pipe operator? They have had it since at least 2013: http://ocaml.org/releases/4.01.0.html http://ocaml.org/releases/4.01.0.html
I wouldn't be surprised if the syntax was even older. And the functionality has likely been used in some academic language from decades ago. It's just reverse function composition after all.
- pg_bot 9y agoThey seem to have been added around the same time. Another comment on the parent attributes it to F#, which based on a quick googling precedes both OCaml and Elixir. It wouldn't surprise me if the operator preceded that either, but I don't have enough time to explore its origin.
- hk__2 9y ago> F#, which based on a quick googling precedes both OCaml and Elixir F# can’t precedes OCaml because it’s based on it. OCaml was first released in 1996 while F# appeared only in 2002.