Problem 21

This commit is contained in:
jakob.scheid committed 2026-03-19 15:39:41 +01:00
1 parent ec9f41a49e
commit b01ce98533
2 files changed
+20

No files matched your search

@@ -0,0 +1,5 @@
package ninetyNineScalaProblems
object Problem21:
def insertAt(value: Any, n: Int, list: List[Any]): List[Any] =
Problem18.slice(0, n, list) ::: value :: Problem18.slice(n, list.length, list)