Missing arguments for parameters #1, #2 in call

Correct, you're calling bimap's result closure with a tuple of parameters. Swift doesn't automatically expand tuples when passed as function parameters, you need to break the tuple apart and pass each parameter separately.

print(
    bimap(add(1))(add(2))(
        tpl.0, tpl.1
    )
)
1 Like