Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: