File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Scala and the fly likes Partially applied functions? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Languages » Scala
Bookmark "Partially applied functions?" Watch "Partially applied functions?" New topic

Partially applied functions?

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9999

In the following example,

Now, when I call this function,

Is the fileEndMatch is used as a partially applied function? How would the underscores be filled? How would Scala know which value to put in the underscore? There are two of them in the case above!

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
I agree. Here's the link:
subject: Partially applied functions?
It's not a secret anymore!