def filtro(lista, predicado, acao):
for item in lista:
if predicado(item):
acao(item)
funcao = lambda x: filtro(x, lambda y: y > 0, lambda z: print(z))
funcao([10, -20, 30])
ZGVmIGZpbHRybyhsaXN0YSwgcHJlZGljYWRvLCBhY2FvKToKICAgIGZvciBpdGVtIGluIGxpc3RhOgogICAgICAgIGlmIHByZWRpY2FkbyhpdGVtKToKICAgICAgICAgICAgYWNhbyhpdGVtKQoKZnVuY2FvID0gbGFtYmRhIHg6IGZpbHRybyh4LCBsYW1iZGEgeTogeSA+IDAsIGxhbWJkYSB6OiBwcmludCh6KSkKCmZ1bmNhbyhbMTAsIC0yMCwgMzBdKQoK