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

Why did you write all those anonymous functions? You can just do

  a |> b |> c|> d |> e
although there are style guides that discourage that and instead recommend using a line for each with good temp variable names.


ah, in this case that works. although it doesn't if you have additional arguments to b,c,d and e. I guess I should have crafted my example better.


https://github.com/jkrumbiegel/Chain.jl would probably work there, but you're not the only one who would like to see this in the language/stdlib itself.




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

Search: