Skip to content

Commit 96a83a4

Browse files
recursivecopy fallback
1 parent f0ce24d commit 96a83a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/utils.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ https://github.com/JuliaDiffEq/RecursiveArrayTools.jl/issues/19.
66
"""
77
Base.@pure is_mutable_type(x::DataType) = x.mutable
88

9+
function recursivecopy(a)
10+
deepcopy(a)
11+
end
912

1013
function recursivecopy(a::AbstractArray{T,N}) where {T<:Number,N}
1114
copy(a)

0 commit comments

Comments
 (0)