Created
September 30, 2016 11:12
-
-
Save hardvain/dd645d631753f3af762b785cfaa9e8a4 to your computer and use it in GitHub Desktop.
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 list1 : List[Int] = List(1,2,3) // list of integers | |
val list2 : List[String] = List("a","b", "c") // list of strings | |
val list3 : List[Any] = List(1,2,"a","b") // list of any. Here Any is the least upper bound of sting & int |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment