File tree 2 files changed +25
-1
lines changed
2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 1
1
name = " DataAPI"
2
2
uuid = " 9a962f9c-6df0-11e9-0e5d-c546b8b5ee8a"
3
3
authors = [
" quinnj <[email protected] >" ]
4
- version = " 1.4.1 "
4
+ version = " 1.5.0 "
5
5
6
6
[compat ]
7
7
julia = " 1"
Original file line number Diff line number Diff line change @@ -69,6 +69,30 @@ default definition.
69
69
function refpool end
70
70
refpool (A:: AbstractArray ) = nothing
71
71
72
+ """
73
+ invrefpool(A)
74
+
75
+ Whenever available, return an indexable object such that given an array `A`
76
+ for which `refpool(A)` is not `nothing`:
77
+
78
+ * for any valid index `x` into `refpool(A)`, `invrefpool(A)[refpool(A)[x]]` is equal to `x`
79
+ (according to `isequal`) and of the same type as `x`;
80
+ * for any valid index `ix` into `invrefpool(A)` , `refpool(A)[invrefpool(A)[ix]]` is equal to `ix`
81
+ (according to `isequal`) and of the same type as `ix`.
82
+
83
+ Additionally it is required that `haskey` is defined for `invrefpool(A)`,
84
+ allowing to check if `ix` is a valid index into it.
85
+
86
+ By default, `invrefpool(A)` returns `nothing`.
87
+
88
+ If `invrefpool(A)` is not `nothing`, then `refpool(A)` also must not be `nothing`.
89
+
90
+ This generic function is owned by DataAPI.jl itself, which is the sole provider of the
91
+ default definition.
92
+ """
93
+ function invrefpool end
94
+ invrefpool (A:: AbstractArray ) = nothing
95
+
72
96
"""
73
97
describe(io::IO, x)
74
98
You can’t perform that action at this time.
0 commit comments