Skip to content

Commit

Permalink
feat: add safe Base.copy
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Feb 23, 2025
1 parent fdaee8d commit a03ed93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/overloads.jl
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ Base.size(r::AllWrappers, i) = size(request_value(r, Val(:read)), _maybe_read(i)
# ---- Non-mutating; possibly unsafe to return ----
for op in (
:keys, :values, :unique, :sort, :reverse,
:sum, :prod, :maximum, :minimum, :extrema
:sum, :prod, :maximum, :minimum, :extrema,
:copy
)
@eval function Base.$(op)(r::AllWrappers; kws...)
k = $(op)(request_value(r, Val(:read)); kws...)
Expand Down

0 comments on commit a03ed93

Please sign in to comment.