I have a generator function and want to get the first ten items from it; my first attempt was:
my_generator()[:10]
This doesn\'t work because g