chaiNNer icon indicating copy to clipboard operation
chaiNNer copied to clipboard

Add First node for iterators

Open RunDevelopment opened this issue 10 months ago • 2 comments

Motivation Sometimes it can be very useful to simply get the first element of an iterator.

Description The node should behave as follows: It takes a single iterator and returns the first element returned by the iterator. If the iterator is empty, throw an error. The important property here is that the value returned by the node must not be iterated.

RunDevelopment avatar Apr 08 '24 12:04 RunDevelopment