Question

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?

Was it helpful?

Solution

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."

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top