prepend!

prepend!(collection, items) -> collection

Insert the elements of items to the beginning of collection.

julia> prepend!([3],[1,2])
3-element Array{Int64,1}:
 1
 2
 3

Examples

julia> foo = [3];

julia> prepend!(foo, [1,2]); foo
3-element Array{Int64,1}:
 1
 2
 3

See Also

append!, delete!, deleteat!, empty!, endof, filter, filter!, gc, get!, getkey, haskey, insert!, isempty, keys, map, map!, merge, merge!, pop!, prepend!, push!, reduce, resize!, shift!, splice!, unshift!, values,

User Contributed Notes

Add a Note

The format of note supported is markdown, use triple backtick to start and end a code block.

*Required Field
Details

Checking you are not a robot: