npstreams.last

npstreams.last(stream)

Retrieve the last item from a stream/iterator, consuming iterables in the process. If empty stream, a RuntimeError is raised.