3 ms·
In Haskell there is an operator "space" - an application operator, which applies left side to argument on right. It is a source of Haskell conciseness [1]. [1]
by thesz 8y ago
In Haskell there is an operator "space" - an application operator, which applies left side to argument on right. It is a source of Haskell conciseness [1].
[1] http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.144.411&rep=rep1&type=pdf http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.144... (Is Ours Smaller Than Theirs?)
You can have special operators when space is not enough, it is exemplified in applicative style - (<<star>>) has type Applicative f => f (a -> b) -> f a -> f b, e.g. it applies elements from right side argument to a left side argument with functions as elements.
(<<star>> is a "< * >" without spaces - HN screws that)
In concatenative languages you also have an implicit operator, much like Haskell's "space" or <<star>> above. In fact, you can invent one and use it instead of space of Forth. And that way Haskell will be concatenative too!