iter_length: Helper function that determines the length of an iterator object
Description
Returns the length of an iterator object. In the case that the iterator's
length is NULL, a value of 1 is returned by default. This value can be
set using the default argument.
Usage
iter_length(object, default = 1)
Arguments
object
an iterator object
default
the value returned when an iterator has NULL length