ArrayUtils
Static Method Summary
Static Public Methods | ||
public static |
* k_combinations(list: Array, k: number) |
|
public static |
randomElement(arr: Array<T>): T |
|
public static |
subarray(uintarr: Uint8Array, begin: number, end: number): Uint8Array |
Static Public Methods
public static * k_combinations(list: Array, k: number) source
Params:
Name | Type | Attribute | Description |
list | Array | ||
k | number |
public static randomElement(arr: Array<T>): T source
Params:
Name | Type | Attribute | Description |
arr | Array<T> |
Return:
T |
public static subarray(uintarr: Uint8Array, begin: number, end: number): Uint8Array source
Params:
Name | Type | Attribute | Description |
uintarr | Uint8Array | ||
begin | number | ||
end | number |
Return:
Uint8Array |