clone


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

Deep clone an object.

function clone<Type>(o:Type[_]) -> Type[_]

Deep clone an array.

  • o: Source array.

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

Deep clone an object multiple times to construct an array.

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