List::insert

Insert an item to a given index.

Type

insert :: [a] -> Int -> a -> [a]

Examples

l = [1, 2, 3].insert$(-2, 5)
println$(l)