Skip to content

Instantly share code, notes, and snippets.

@Yuichiroh
Created April 9, 2015 03:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Yuichiroh/d28047863751c83a2e6c to your computer and use it in GitHub Desktop.
Save Yuichiroh/d28047863751c83a2e6c to your computer and use it in GitHub Desktop.
class School[T <: Student : ClassTag](val students: Seq[T]) {
def studentsAsArray = students.toArray
// OK
def studentsAsList = students.toList
// OK
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment