Problem 21
This commit is contained in:
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)
|
||||
Reference in new issue
Block a user