ARRAY#

swordfish._enums.ARRAY = <swordfish._enums.__ARRAY object>#

Creates instances of the ARRAY DataType.

Examples

>>> import swordfish as sf
>>> sf.array_vector([[True], [False, None]], type=sf.types.ARRAY(sf.types.BOOL))
ArrayVector([[1],[0,00b]], type=BOOL[])
>>> sf.array_vector([[True], [False, None]], type="BOOL[]")
ArrayVector([[1],[0,00b]], type=BOOL[])
Parameters:

sub_type (DataType)

Return type:

DataType