Deepcopy: Difference between revisions

m
(Initial FutureBasic task solution added)
m (→‎{{header|Wren}}: Minor tidy)
 
Line 2,477:
 
In the following example, we attempt to deep-copy a custom type, MyMap, which wraps the built-in generic Map type. This succeeds here because of the types of values used but wouldn't succeed if a Map value were, say, some user-defined type which didn't have a clone() method.
<syntaxhighlight lang="ecmascriptwren">import "./trait" for Cloneable, CloneableSeq
import "./seq" for Lst
 
class MyMap is Cloneable {
9,482

edits