from fn import _
numbers = [1, 2, 3, 4, 5]
result = list(map(_ + 1, numbers))
from fn import _
def add(a, b, c):
return a + b + c
add_curried = curry(add, 1, 2)
result = add_curried(3)
from fn import _
def f(x):
return x + 1
def g(x):
return x * 2
composed = compose(f, g)
result1 = composed(2)
piped = pipe(f, g)
result2 = piped(2)
from fn import _
numbers = [1, 2, 3, 4, 5]
result = list(map(_ + 1, numbers))
pip install fn.py
from fn import _