As far as I know, features like List or Seq are implemented in the Scala standard library instead of being part of the language itself.
There is one thing that I donβt understand, though: one has syntax for variational functions that look like
def foo(args: String*) = ...
Internally, one has access to args , and it will be Seq .
Itβs not clear to me if
Seq is considered a special data structure sufficient to display as part of the language, or- the designation
* here is a special case of a more general syntax that avoids references to specific interfaces of data structures.
Does anyone know which one is the correct intression?
scala data-structures language-design variadic-functions
Andrea
source share