Skip to content

Instantly share code, notes, and snippets.

@pedrotnascimento
Created April 28, 2017 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pedrotnascimento/a7220833d6768812dae63aa3108fd234 to your computer and use it in GitHub Desktop.
Save pedrotnascimento/a7220833d6768812dae63aa3108fd234 to your computer and use it in GitHub Desktop.
shreding of python
# 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