class Array

def deep_dup

Experimental RBS support (using type sampling data from the type_fusion project).

def deep_dup: () -> untyped

This signature was generated using 1 sample from 1 application.

dup[1][2] # => 4
array[1][2] # => nil

dup[1][2] = 4
dup = array.deep_dup
array = [1, [2, 3]]

Returns a deep copy of array.
def deep_dup
  map(&:deep_dup)
end