File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 11name = " ArrayInterface"
22uuid = " 4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
3- version = " 2.14.7 "
3+ version = " 2.14.8 "
44
55[deps ]
66LinearAlgebra = " 37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Original file line number Diff line number Diff line change 464464 lst = _try_static (static_last (x), static_last (y))
465465 return Base. Slice (OptionallyStaticUnitRange (fst, lst))
466466end
467+
468+ function Base. show (io:: IO , r:: OptionallyStaticRange )
469+ print (io, first (r))
470+ if known_step (r) === 1
471+ print (io, " :" )
472+ else
473+ print (io, " :" )
474+ print (io, step (r))
475+ print (io, " :" )
476+ end
477+ print (io, last (r))
478+ end
Original file line number Diff line number Diff line change 11
22"""
3+ StaticInt(N::Int) -> StaticInt{N}()
4+
35A statically sized `Int`.
46Use `StaticInt(N)` instead of `Val(N)` when you want it to behave like a number.
57"""
68struct StaticInt{N} <: Integer
79 StaticInt {N} () where {N} = new {N::Int} ()
810end
911
12+ Base. show (io:: IO , :: StaticInt{N} ) where {N} = print (io, " Static($N )" )
13+
1014const Zero = StaticInt{0 }
1115const One = StaticInt{1 }
1216
You can’t perform that action at this time.
0 commit comments