Created
February 4, 2014 10:39
-
-
Save 4fuss/8801380 to your computer and use it in GitHub Desktop.
Predicate and transformation functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val predicate: (String, Int) => Boolean = { case (_, f) => f > 3 && f < 25 } | |
val transformFn: (String, Int) => String = { case (w, _) => w } | |
predicate("lol", 5) //returns true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment