Usage
ArrayType(T, P): Category
Parameter | Type | Description |
---|---|---|
T | Type | the type of the array entries |
P | PrimitiveArrayType T | the type of the underlying data |
Description
ArrayType is the category of arrays whose entries are of typeand whose underlying data is of type
.
Exports
BoundedFiniteLinearStructureType T array: (P, MachineInteger) %
construction of an array data: % P
access to raw data new: MachineInteger %
creation of an array resize!: (%, MachineInteger) %
resize an array sort!: (%, (T, T) Boolean)
%
sort an array
ifhas TotallyOrderedType then
TotallyOrderedType binarySearch: (T, %) (Boolean, MachineInteger)
binary search sort!: % %
sort an array