Problem 21
This commit is contained in:
@@ -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