Skip to content

Instantly share code, notes, and snippets.

@hardvain
Created September 30, 2016 11:12
Show Gist options
  • Save hardvain/dd645d631753f3af762b785cfaa9e8a4 to your computer and use it in GitHub Desktop.
Save hardvain/dd645d631753f3af762b785cfaa9e8a4 to your computer and use it in GitHub Desktop.
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