File tree Expand file tree Collapse file tree 4 files changed +9
-1
lines changed Expand file tree Collapse file tree 4 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
1
name = " ArrayInterface"
2
2
uuid = " 4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
3
- version = " 3.1.37 "
3
+ version = " 3.1.38 "
4
4
5
5
[deps ]
6
6
Compat = " 34da2185-b29b-5c13-b0c7-acf172513d20"
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ ArrayInterface.LazyAxis
82
82
ArrayInterface.OptionallyStaticStepRange
83
83
ArrayInterface.OptionallyStaticUnitRange
84
84
ArrayInteraface.SOneTo
85
+ ArrayInteraface.SUnitRange
85
86
ArrayInterface.StrideIndex
86
87
```
87
88
Original file line number Diff line number Diff line change 188
188
end
189
189
end
190
190
191
+ """
192
+ SUnitRange(start::Int, stop::Int)
193
+
194
+ An alias for `OptionallyStaticUnitRange` where both the start and stop are known statically.
195
+ """
191
196
const SUnitRange{F,L} = OptionallyStaticUnitRange{StaticInt{F},StaticInt{L}}
197
+ SUnitRange (start:: Int , stop:: Int ) = SUnitRange {start,stop} ()
192
198
193
199
"""
194
200
SOneTo(n::Int)
Original file line number Diff line number Diff line change 12
12
@test @inferred (static (1 ): 2 : 10 ) == 1 : 2 : 10
13
13
@test @inferred (static (1 ): UInt (10 )) === static (1 ): 10
14
14
@test @inferred (UInt (1 ): static (1 ): static (10 )) === 1 : static (10 )
15
+ @test ArrayInterface. SUnitRange (1 , 10 ) == 1 : 10
15
16
@test @inferred (ArrayInterface. OptionallyStaticUnitRange {Int,Int} (1 : 10 )) == 1 : 10
16
17
@test @inferred (ArrayInterface. OptionallyStaticUnitRange (1 : 10 )) == 1 : 10
17
18
You can’t perform that action at this time.
0 commit comments