Problem 20

This commit is contained in:
2026-03-19 15:39:39 +01:00
parent 547797801c
commit ec9f41a49e
2 changed files with 18 additions and 0 deletions
@@ -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))