Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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


I like the way Haskell uses it's composition function operator (.), it's very clean, e.g.

  λ>putStrLn . reverse .  map toUpper $ "hello world"
  DLROW OLLEH




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: