News for hackers. Stuff that matters.

abisen

Re:Calculus with Julia on Saturday May 18, 2024 @06:50PM (#40402739)
If I am not using named arguments I find myself using the pipe operator a lot. I also find it more readable.

array |> mean |> round

For scenarios with named arguments there is a little not so cleaner workaround

array |> mean |> x->round(x, digits=2)