Problem 20
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
package ninetyNineScalaProblems
|
||||
|
||||
object Problem20:
|
||||
def removeAt(n: Int, list: List[Any]): Tuple2[List[Any], Any] =
|
||||
(Problem18.slice(0, n, list) ::: Problem18.slice(n + 1, list.length, list), list(n))
|
||||
Reference in New Issue
Block a user