Skip to content

Commit

Permalink
Add See also: to pop!, shift! and splice!
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Kurz authored Sep 20, 2017
1 parent d989d3e commit c85de3b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions base/array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1080,6 +1080,8 @@ end
Remove an item in `collection` and return it. If `collection` is an
ordered container, the last item is returned.
See also: shift!, splice!
# Examples
```jldoctest
julia> A=[1, 2, 3]
Expand Down Expand Up @@ -1147,6 +1149,8 @@ end
Remove the first `item` from `collection`.
See also: pop!, splice!
# Examples
```jldoctest
julia> A = [1, 2, 3, 4, 5, 6]
Expand Down Expand Up @@ -1316,6 +1320,8 @@ Subsequent items are shifted left to fill the resulting gap.
If specified, replacement values from an ordered
collection will be spliced in place of the removed item.
See also: pop!, shift!
# Examples
```jldoctest splice!
julia> A = [6, 5, 4, 3, 2, 1]; splice!(A, 5)
Expand Down

0 comments on commit c85de3b

Please sign in to comment.