Hi
I am running into the same issue. I think this is an error in the book since the Predicate expects a function with arity 1. The following works:
def elegible?(%Patron{} = patron, %MODULE{} = ride) do
te = fn patron → tall_enough?(patron, ride) end
oe = fn patron → old_enough?(patron, ride) end
p_all([te, oe]).(patron)
end
Cheers