diff --git a/base/array.jl b/base/array.jl index dfa514cea4981..aac35d6049a77 100644 --- a/base/array.jl +++ b/base/array.jl @@ -1222,6 +1222,8 @@ end Insert one or more `items` at the beginning of `collection`. +This function is called `unshift` in many other programming languages. + # Examples ```jldoctest julia> pushfirst!([1, 2, 3, 4], 5, 6) @@ -1246,6 +1248,8 @@ end Remove the first `item` from `collection`. +This function is called `shift` in many other programming languages. + # Examples ```jldoctest julia> A = [1, 2, 3, 4, 5, 6]