3 ms·
array |> mean |> round(; digits=2) should also work and is a bit more concise.
by andyferris 2y ago
array |> mean |> round(; digits=2) should also work and is a bit more concise.
- SatvikBeri 2y agoThis doesn't work, at least for me on 1.10. `round(; digits=2)` would have to produce a function. But Julia doesn't have automatic currying, so that only happens if someone has implemented a special-case version (e.g. (==)(3) returns a partial function that tests for equality with 3.)