Problem 17
This commit is contained in:
1 parent
1e9c69cd76
commit
233a9369c8
2 files changed
+20
No files matched your search
@@ -0,0 +1,7 @@
|
||||
package ninetyNineScalaProblems
|
||||
|
||||
import scala.annotation.tailrec
|
||||
|
||||
object Problem17:
|
||||
def splitList(n: Int, list: List[Any]): Tuple2[List[Any],List[Any]] =
|
||||
(Problem18.slice(0, n, list), Problem18.slice(n, list.length, list))
|
||||
Reference in new issue
Block a user