st form, the argument must
supply its own iterator, or be a sequence.
In the second form, the callable is called until it returns the sentinel.