Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing methods to GenTraversableLike.
- Loading branch information
Aleksandar
committed
May 6, 2012
1 parent
f146d58
commit 2eb186f
Showing
5 changed files
with
80 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,20 @@ | |||
|
|||
|
|||
|
|||
import collection._ | |||
|
|||
|
|||
|
|||
object Test { | |||
|
|||
def main(args: Array[String]) { | |||
val gen: GenTraversable[Int] = List(1, 2, 3) | |||
gen.head | |||
gen.headOption | |||
gen.tail | |||
gen.last | |||
gen.lastOption | |||
gen.init | |||
} | |||
|
|||
} |