- insert
Insert element into array at location
examples/arrays/insert.cr
numbers = ["One", "Two", "Three"] puts numbers.insert(1, "Four") puts numbers # puts numbers.insert(1, ["1", "2"])
["One", "Four", "Two", "Three"] ["One", "Four", "Two", "Three"]