This file contains hidden or 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) |
This file contains hidden or 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
for(i in params){ | |
i = i.replace(/[A-Z]/,function(match){ | |
return match.toLowerCase(); | |
}); | |
i = i.replace(/[ ][A-z]/g,function(match,offset,string){ | |
return ""+string[offset+1].toUpperCase() ; | |
}); | |
//insertion sort que recebe json e ordena a partir de um parametro |
NewerOlder