Future of string lambda functions/string predicate functions
Jacob Carlborg
doob at me.com
Wed Aug 14 12:22:20 PDT 2013
On 2013-08-14 19:17, Andrei Alexandrescu wrote:
> Really? How does Scala figure that _ < _ refers to two arguments and not
> one?
In Scala _ is something like a wildcard.
* It can be used in imports: "import foo.bar._". Means import everything
in foo.bar
* It can be use as a fallback in pattern matching, like the default in a
switch
* It can be used in lambdas, as described above
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list