Skip to content

Instantly share code, notes, and snippets.

@BetterProgramming
Created March 9, 2021 18:15
>>> filter_list = [1,2,3,4,5]
>>> filter_list = filter(lambda x: x > 2, filter_list)
>>> next(filter_list)
3
>>> next(filter_list)
4
>>> next(filter_list)
5
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment