Timestream.index

Timestream.index(key)

Return a Timestream indexing into the elements of self.

If the Timestream contains lists, the key should be an integer index.

If the Timestream contains maps, the key should be the same type as the map keys.

Parameters:

key (Arg)

The key to index into the expression.

Raises:

TypeError

When the Timestream is not a record, list, or map.

Returns:

Timestream

Timestream with the resulting value (or null if absent) at each point.

Note

Indexing may be written using the operator self[key] instead of self.index(key).