posted 5 days ago
indexOf is the name of the method.
[T] is declaring that there's a generic parameter for this method, which is named T. This doesn't do anything here, but will be used later in:
(seq: Seq[T],value: T, from: Int) declares the method parameters - there are three:
The first is named seq and has type Seq[T]The second is named value and has type TThe third is named from and is an Int