Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby deep copy

food = %w( bread milk orange )
food.map(&:object_id)       # [35401044, 35401020, 35400996]
food.clone.map(&:object_id) # [35401044, 35401020, 35400996]
 
PREVIOUS NEXT
Tagged: #ruby #deep #copy
ADD COMMENT
Topic
Name
2+3 =