def copy

stelliferous@0.0.2.0 · tensor_band.bend:76

import stelliferous@0.0.2.0/tensor_band.bend as TensorBand
import Base
import stelliferous@0.0.2.0/storage_clone.bend as Clone
import stelliferous@0.0.2.0/traversal_partition.bend as Partition

76def copy(~Element: Data,bands: Bands(~Element)) -> Bands(~Element) & Bands(~Element):
77  match bands:
78    case Partition.Leaf{input,+first,+rows,details}: copied_leaf(~Element,first,rows,Clone.clone(~Element,input))
79    case Partition.Fork{left,right}: copied_fork(~Element,copy(~Element,left),copy(~Element,right))

Uses (6)

Used by (1)