• 建立不複製資料的 Vector。

    類型參數

    • T extends TypedArray | BigIntArray

    參數

    • data: T | readonly T[]

    返回 Vector<TypedArrayDataType<T>>

    const vector = makeVector(new Int32Array([1, 2, 3]));
    
  • 建立不複製資料的 Vector。

    類型參數

    • T extends DataView

    參數

    • data: T | readonly T[]

    返回 Vector<dtypes.Int8>

    const vector = makeVector(new Int32Array([1, 2, 3]));
    
  • 建立不複製資料的 Vector。

    類型參數

    參數

    返回 Vector<T>

    const vector = makeVector(new Int32Array([1, 2, 3]));
    
  • 建立不複製資料的 Vector。

    類型參數

    參數

    返回 Vector<T>

    const vector = makeVector(new Int32Array([1, 2, 3]));
    
  • 建立不複製資料的 Vector。

    類型參數

    參數

    • data: DataProps<T> | readonly DataProps<T>[]

    返回 Vector<T>

    const vector = makeVector(new Int32Array([1, 2, 3]));