From 54e90fcf04506988c1f4b7a6c97877f3d7be27cb Mon Sep 17 00:00:00 2001 From: Andy Tockman Date: Thu, 10 Dec 2020 15:46:40 -0600 Subject: [PATCH] Add note about (un)shift to (push/pop)first docs This would be helpful for new users when searching for these functions via e.g. apropos(). --- base/array.jl | 4 ++++ 1 file changed, 4 insertions(+) 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]