4 ms·
But you can read left to right to get the order in which operations/transformations are performed: "hello world" uppercase print While in languages where
by gosub 13y ago
But you can read left to right to get the order in which operations/transformations are performed:
"hello world" uppercase print
While in languages where function application is prefix, you have to go inside to outside, right to left:
print(uppercase("hello world"))
Additionally, if there are infix operators, the direction is switched mid statement:
print(uppercase("hello" + "world"))
hello -> world <- uppercase <- print
- djhworld 13y agoI like the way Haskell uses it's composition function operator (.), it's very clean, e.g. λ>putStrLn . reverse . map toUpper $ "hello world" DLROW OLLEH