2 ms·
I'm assuming that by 'pipe operator' you mean the semantics, not specifically '|'. Of the programming languages I've used F# ('|>', https://camilotk.github.io/f
by drweevil 1y ago
I'm assuming that by 'pipe operator' you mean the semantics, not specifically '|'. Of the programming languages I've used F# ('|>', https://camilotk.github.io/fsharp-by-example/chapters/pipe/ https://camilotk.github.io/fsharp-by-example/chapters/pipe/), Elixir ('|>', https://elixirschool.com/en/lessons/basics/pipe_operator https://elixirschool.com/en/lessons/basics/pipe_operator), and Clojure ('->' and '->>', https://clojure.org/guides/threading_macros https://clojure.org/guides/threading_macros), have pipe operators. The last two implement them as macros.
- bookwormtrixie 1y agoAside of mentioned above languages, many others have similar concept but does not use any particular operator, e.g.: C# - LINQ https://learn.microsoft.com/en-us/dotnet/csharp/linq/ https://learn.microsoft.com/en-us/dotnet/csharp/linq/ Java - Streams https://docs.oracle.com/en/java/javase/24/docs/api/java.base/java/util/stream/package-summary.html https://docs.oracle.com/en/java/javase/24/docs/api/java.base... Rust - Iterator trait https://doc.rust-lang.org/std/iter/trait.Iterator.html https://doc.rust-lang.org/std/iter/trait.Iterator.html