copy


function copy<Type>(o:Type) -> Type

Deep copy. May be preceded by bridge() for a lazy copy, otherwise will perform an eager copy.

function copy<Type>(o:Type, length:Integer) -> Type[_]

Deep copy multiple times to construct an array. May be preceded by bridge() for lazy copies, otherwise will perform eager copies.

  • o: Source object.
  • length: Length of vector.