Skip to content

Instantly share code, notes, and snippets.

@4fuss
Created February 4, 2014 10:39
Show Gist options
  • Save 4fuss/8801380 to your computer and use it in GitHub Desktop.
Save 4fuss/8801380 to your computer and use it in GitHub Desktop.
Predicate and transformation functions
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