Re:Translating Haskell to C++ metaprogramming
by gizmo686 on Sunday July 12, 2015 @10:09PM
(#9875981)
is valid Haskel, and denotes that "contains" is a function that takes a tuple and returns a bool. As a matter of style, Haskellers tend to avoid writing function like this, and prefer to write functions like
which indicates that "contains" is a function that takes a "NameClass" and returns another function. Because this pattern is so common in Haskell, -> is defined to be right-associative, so the paranthese can be omited.
[ Parent
| on HN ]
There are no comments on this comment yet.