clone

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

Deep clone an object or fiber.

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

Deep clone an object or fiber multiple times to construct an array.

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