def clone
import bendtorch-core@0.1.0.0/src/storage/main.bend as BendtorchCoreimport Base
115def clone(storage: Storage) -> Storage & Storage:
116 match storage:
117 case Empty{}:
118 (Empty{}, Empty{})
119 case Owned{+d, +n, array, balanced, valid}:
120 finish_clone(d, n, array, Array.clone(F32, array), {==}, balanced, valid)