Implement Iterable.scan without Iterable.follow