def ASet.copy

bend-ml-tensor-array@0.1.19.0 · main.bend:2027

import bend-ml-tensor-array@0.1.19.0/main.bend as BendMlTensorArray
import Base

2027def ASet.copy(-T: Data, a: Array<T>) -> ASet.Copy(T, a):
2028  match a:
2029    case ALeaf{x}:
2030      (ALeaf{x}, 1, {==}, {==}, {==}, Unit{})
2031    case ANode{xs, ys}:
2032      ASet.copy_node(T, xs, ys, ASet.copy(T, xs))

Uses (5)

Used by (3)