3

ok, embarrassing enough, I posted code that I need explained. Specifically, it first chains absolute value and subtraction together, then tacks on a sort, all the while not having to mention parameters and arguments at all, because of the presense of "adverbs" that can join these functions "verbs"

What (non-APL-type) languages support this kind of no-arguments function composition (I have the vague idea it ties in strongly to the concepts of monad/dyad and rank, but its hard to get a particularly easy-to-understand picture just from reading Wikipedia) and what do I call this concept?

Community
  • 1
  • 1
Jimmy
  • 89,068
  • 17
  • 119
  • 137

1 Answers1

5

This is similar to pointfree style; this works though composition and currying. Functional languages such as Haskell and ML use this.

Concatenative programming languages like Joy, Factor, and Cat also have these "adverbs."

Doug Currie
  • 40,708
  • 1
  • 95
  • 119