today I learned you can do stuff like this in python

tuple(i for i in range(10))
sum(i for i in range(10))

the function gets a generator passed into it

EDIT: the thing I didn't know about was generator comprehensions without brackets, not that you can pass generators into things

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.gamedev.place/users/aeva/statuses/114688906748000559 on your instance and quote it. (Note that quoting is not supported in Mastodon.)