Fork me on GitHub

last

Returns true if last datapoint of a sequence, and false otherwise

last is true on the last datapoint of a sequence.

It is very common in pipescript to end a transform with if last to only return the final datapoint, which contains the desired result of computation, without returning intermediate values.

sum | if last

will sum up all datapoints, and return a single datapoint with the full sum. If if last were not there, all intermediate values of the sum would be returned.


Transform Details

One-To-OneStatelessPeekInput SchemaOutput Schema
TrueFalseTrue{"type": "boolean"}

This Site

Contribute

ConnectorDB is a very new open-source project. If you are a designer/developer or ML enthusiast, head on over to the connectordb github, where you can choose which part of ConnectorDB you want to contribute towards! Pull requests or bug reports are welcome!