Exemplo n.º 1
0
from pyramda.function.curry import curry
import builtins

getattr = curry(lambda name, o: builtins.getattr(o, name))
Exemplo n.º 2
0
from pyramda.function.curry import curry

map = curry(lambda f, xs: [f(x) for x in xs])
Exemplo n.º 3
0
from pyramda.function.curry import curry
import builtins


getattr = curry(lambda name, o: builtins.getattr(o, name))
Exemplo n.º 4
0
from pyramda.function.curry import curry

equals = curry(lambda x, y: x == y)
Exemplo n.º 5
0
from pyramda.function.curry import curry


filter = curry(lambda p, xs: [x for x in xs if p(x)])
Exemplo n.º 6
0
from pyramda.function.curry import curry


map = curry(lambda f, xs: [f(x) for x in xs])
Exemplo n.º 7
0
from pyramda.function.curry import curry

filter = curry(lambda p, xs: [x for x in xs if p(x)])
Exemplo n.º 8
0
from pyramda.function.curry import curry
import builtins

isinstance = curry(lambda type, v: builtins.isinstance(v, type))
Exemplo n.º 9
0
from pyramda.function.curry import curry

getitem = curry(lambda key, collection: collection[key])
Exemplo n.º 10
0
from pyramda.function.curry import curry


getitem = curry(lambda key, collection: collection[key])