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:
-
When the Timestream is not a record, list, or map.
- Returns:
-
Timestream with the resulting value (or
null
if absent) at each point.
NoteIndexing may be written using the operator
self[key]
instead ofself.index(key)
.