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 11name = " ArrayInterface"
22uuid = " 4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
3- version = " 3.1.37 "
3+ version = " 3.1.38 "
44
55[deps ]
66Compat = " 34da2185-b29b-5c13-b0c7-acf172513d20"
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ ArrayInterface.LazyAxis
8282ArrayInterface.OptionallyStaticStepRange
8383ArrayInterface.OptionallyStaticUnitRange
8484ArrayInteraface.SOneTo
85+ ArrayInteraface.SUnitRange
8586ArrayInterface.StrideIndex
8687```
8788
Original file line number Diff line number Diff line change 188188 end
189189end
190190
191+ """
192+ SUnitRange(start::Int, stop::Int)
193+
194+ An alias for `OptionallyStaticUnitRange` where both the start and stop are known statically.
195+ """
191196const SUnitRange{F,L} = OptionallyStaticUnitRange{StaticInt{F},StaticInt{L}}
197+ SUnitRange (start:: Int , stop:: Int ) = SUnitRange {start,stop} ()
192198
193199"""
194200 SOneTo(n::Int)
Original file line number Diff line number Diff line change 1212 @test @inferred (static (1 ): 2 : 10 ) == 1 : 2 : 10
1313 @test @inferred (static (1 ): UInt (10 )) === static (1 ): 10
1414 @test @inferred (UInt (1 ): static (1 ): static (10 )) === 1 : static (10 )
15+ @test ArrayInterface. SUnitRange (1 , 10 ) == 1 : 10
1516 @test @inferred (ArrayInterface. OptionallyStaticUnitRange {Int,Int} (1 : 10 )) == 1 : 10
1617 @test @inferred (ArrayInterface. OptionallyStaticUnitRange (1 : 10 )) == 1 : 10
1718
You can’t perform that action at this time.
0 commit comments