We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57b03b3 commit fcde7e3Copy full SHA for fcde7e3
src/static.jl
@@ -10,6 +10,8 @@ end
10
const Zero = StaticInt{0}
11
const One = StaticInt{1}
12
13
+Base.show(io::IO, ::StaticInt{N}) where {N} = print(io, "Static($N)")
14
+
15
Base.@pure StaticInt(N::Int) = StaticInt{N}()
16
StaticInt(N::Integer) = StaticInt(convert(Int, N))
17
StaticInt(::StaticInt{N}) where {N} = StaticInt{N}()
0 commit comments