Better HN
topnewbestaskshowjobs
Log inSign up

abisen

8 karma · joined Jan 3, 2023 (3y ago) · 1 submissions

Submissions

comment 2y ago · link · parent

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)