Last active
April 15, 2016 13:20
-
-
Save Akii/b3ff7115cd44028dde7663a794950429 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def listTuple1(List a): Option[(a,a)] = a match { | |
case x :: y :: _ => Some((x,y)) | |
case _ => None | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment