mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-27 17:26:39 +03:00
commit
7016b606ed
@ -395,6 +395,9 @@ filled_set | other_set # => {1, 2, 3, 4, 5, 6}
|
||||
2 in filled_set # => True
|
||||
10 in filled_set # => False
|
||||
|
||||
# Make a one layer deep copy
|
||||
filled_set = some_set.copy() # filled_set is {1, 2, 3, 4, 5}
|
||||
filled_set is some_set # => False
|
||||
|
||||
|
||||
####################################################
|
||||
|
Loading…
Reference in New Issue
Block a user