Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
drweevil
· 1y ago · 0 comments
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/
), Elixir ('|>',
https://elixirschool.com/en/lessons/basics/pipe_operator
), and Clojure ('->' and '->>',
https://clojure.org/guides/threading_macros
), have pipe operators. The last two implement them as macros.
Comments
[–]
bookwormtrixie
1y ago
Aside 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/
Java - Streams
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