Skip to content

Commit c2b30f8

Browse files
authored
Add note about (un)shift to (push/pop)first docs (#38823)
This would be helpful for new users when searching for these functions via e.g. apropos().
1 parent b7d5240 commit c2b30f8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

base/array.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,6 +1222,8 @@ end
12221222
12231223
Insert one or more `items` at the beginning of `collection`.
12241224
1225+
This function is called `unshift` in many other programming languages.
1226+
12251227
# Examples
12261228
```jldoctest
12271229
julia> pushfirst!([1, 2, 3, 4], 5, 6)
@@ -1246,6 +1248,8 @@ end
12461248
12471249
Remove the first `item` from `collection`.
12481250
1251+
This function is called `shift` in many other programming languages.
1252+
12491253
# Examples
12501254
```jldoctest
12511255
julia> A = [1, 2, 3, 4, 5, 6]

0 commit comments

Comments
 (0)