Created
May 15, 2009 02:57
-
-
Save heynemann/112032 to your computer and use it in GitHub Desktop.
Sample code for before Pynq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
collection = some_method_return() | |
filtered = [] | |
for item in collection: | |
if item.property + item.another > 10: | |
filtered.append(item) | |
return filtered.sort() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment