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 3cd7994 commit 935f1b0Copy full SHA for 935f1b0
src/CircularArrayBuffers.jl
@@ -17,6 +17,8 @@ end
17
18
const CircularVectorBuffer{T} = CircularArrayBuffer{T, 1}
19
20
+CircularVectorBuffer{T}(n::Integer) where T = CircularArrayBuffer{T}(n)
21
+
22
function CircularArrayBuffer{T}(d::Integer...) where {T}
23
N = length(d)
24
CircularArrayBuffer(Array{T}(undef, d...), 1, 0, N == 1 ? 1 : *(d[1:end-1]...))
0 commit comments