Skip to content

Conversation

@yurivish
Copy link
Contributor

@yurivish yurivish commented Dec 15, 2018

The enumerate method referred to in the current documentation no longer exists and has been deprecated to a method of pairs in 0.7.

Thanks to @simonschoelly for pointing this out.

julia> using OffsetArrays;
julia> pairs(IndexLinear(),OffsetArray(1:5, -2:2))
pairs(::OffsetArray{Int64,1,UnitRange{Int64}}) with 5 entries:
  -2 => 1
  -1 => 2
  0  => 3
  1  => 4
  2  => 5

The `enumerate` method referred to in the current definition no longer exists and has been deprecated to a method of `pairs` in 0.7.

Thanks to @simonschoelly for pointing this out.

```
julia> using OffsetArrays;
julia> pairs(IndexLinear(),OffsetArray(1:5, -2:2))
pairs(::OffsetArray{Int64,1,UnitRange{Int64}}) with 5 entries:
  -2 => 1
  -1 => 2
  0  => 3
  1  => 4
  2  => 5
```
@KristofferC KristofferC added docs This change adds or pertains to documentation backport pending 1.0 labels Dec 15, 2018
@KristofferC KristofferC mentioned this pull request Dec 20, 2018
52 tasks
This was referenced Dec 30, 2018
@StefanKarpinski StefanKarpinski added backport 1.1 triage This should be discussed on a triage call and removed backport 1.1 labels Jan 31, 2019
@JeffBezanson JeffBezanson removed the triage This should be discussed on a triage call label Feb 14, 2019
@JeffBezanson JeffBezanson merged commit 549240a into JuliaLang:master Feb 14, 2019
KristofferC pushed a commit that referenced this pull request Apr 15, 2019
The `enumerate` method referred to in the current definition no longer exists and has been deprecated to a method of `pairs` in 0.7.

Thanks to @simonschoelly for pointing this out.

```
julia> using OffsetArrays;
julia> pairs(IndexLinear(),OffsetArray(1:5, -2:2))
pairs(::OffsetArray{Int64,1,UnitRange{Int64}}) with 5 entries:
  -2 => 1
  -1 => 2
  0  => 3
  1  => 4
  2  => 5
```

(cherry picked from commit 549240a)
@KristofferC KristofferC mentioned this pull request Apr 15, 2019
39 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs This change adds or pertains to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants