5 ms·
`(root (mean (square x)))` Is this more readable? `x ~> square . mean . root` Where `~>` "sends" a value to a function `x ~> f := f(x)` and `.` is the "backw
by gnulinux 8y ago
`(root (mean (square x)))`
Is this more readable?
`x ~> square . mean . root`
Where `~>` "sends" a value to a function `x ~> f := f(x)` and `.` is the "backwards" function composition `f . g := \x (g (f x))
I think I prefer the "backwards" notation ("root mean square"), but I can see the appeal of "square mean root"
- Silfen 8y agoI like having both notations at my disposal. For example, F#'s forward pipe operator[0], or pipes from a unix shell. [0]https://docs.microsoft.com/en-us/dotnet/fsharp/language-reference/functions/index#function-composition-and-pipelining https://docs.microsoft.com/en-us/dotnet/fsharp/language-refe...