4 ms·
If you would call it pipe operator, like it's called in many (Elm, Elixir, F#, OCaml) other languages that have it, people would understand you faster IMHO. It
by scns 6y ago
If you would call it pipe operator, like it's called in many (Elm, Elixir, F#, OCaml) other languages that have it, people would understand you faster IMHO. It is even discussed for inclusion into JavaScript.
- dwijnand 6y agohttps://www.scala-lang.org/api/current/scala/util/ChainingOps.html#pipe[B](f:A=%3EB):B https://www.scala-lang.org/api/current/scala/util/ChainingOp...
- valenterry 6y agoNice I didn't know that! I still like to add |> on top of it. "foo |> bar |> baz" just visually parses easier than "foo pipe bar pipe baz"