Last active
January 2, 2016 00:59
-
-
Save paulp/8227277 to your computer and use it in GitHub Desktop.
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
scala> def drop[T](xs: List[T], n: Int) = if (xs.isEmpty || n <= 0) xs else drop(xs.tail, n - 1) | |
drop: [T](xs: List[T], n: Int)List[T] | |
scala> drop(List(1,2,3,4,5), 3) | |
res0: List[Int] = List(4, 5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For this to happen you should upload your branches to github.