zcollection.variable.array.Array.__getitem__#

Array.__getitem__(key)[source]#

Get a slice of the variable.

Parameters:

key (Any) – Slice or index to use.

Returns:

The variable slice.

Return type:

Any