Created
October 15, 2014 20:48
-
-
Save bbq2100/060f33617d7a81b38a50 to your computer and use it in GitHub Desktop.
Difference between restricted and nonrestricted collection
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 restrictedAccess: Map[String, Elem] = Map("scala" -> tweets("scala"), "java" -> tweets("java")) | |
val usingPartialFuncs: Map[String, (String) => Elem] = Map("scala" -> tweets _, "java" -> tweets _) | |
usingPartialFuncs.view.map{ t=> t._2(t._1) }.head |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment