Skip to content

Instantly share code, notes, and snippets.

@kmizu
Created November 23, 2010 03:30
Show Gist options
  • Save kmizu/711187 to your computer and use it in GitHub Desktop.
Save kmizu/711187 to your computer and use it in GitHub Desktop.
val seq: Seq[Int] = List(1, 2, 3)
println(seq eq seq.toList) // seq.toListはthisを返す(型だけが変わるので、同じインスタンス)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment