The difference is that using `islice` version requires the input to be an iterator, while my original code works with `list` also. `raw_documents` might be an iterable or a list. We can still convert the `raw_documents` into `iter` though, what do you think?