Skip to content

Commit 041e07d

Browse files
authored
Add naive recursivecopy! implementation
Implement basic version of recursivecopy! function.
1 parent 711daaf commit 041e07d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/utils.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ like `copy!` on arrays of scalars.
4545
"""
4646
function recursivecopy! end
4747

48+
function recursivecopy!(b, a)
49+
copyto!(b, a)
50+
end
51+
4852
function recursivecopy!(b::AbstractArray{T, N},
4953
a::AbstractArray{T2, N}) where {T <: StaticArraysCore.StaticArray,
5054
T2 <: StaticArraysCore.StaticArray,

0 commit comments

Comments
 (0)