Created
April 28, 2017 18:16
-
-
Save pedrotnascimento/a7220833d6768812dae63aa3108fd234 to your computer and use it in GitHub Desktop.
shreding of python
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
# recebe uma funcao default que retorna True | |
# a funcao pode ser alterada para receber um predicado | |
def a(filter=lambda x: True, *args): | |
return filter(args) | |
a(lambda x: x[0] < x[1] , 3,4) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment