You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assume we want to invoke tuple_for_each or tuple_apply on the keys or values of a map. We can encode our projection inside the function object passed as argument, but it would be nicer to pass a unary function as optional third argument.
The second implementation is more verbose because we had to write some function objects, but it enables easier composition.
mp11 doesn't have useful function objects to compose with this feature, but higher order function libraries do.
The text was updated successfully, but these errors were encountered:
Assume we want to invoke tuple_for_each or tuple_apply on the keys or values of a map. We can encode our projection inside the function object passed as argument, but it would be nicer to pass a unary function as optional third argument.
Consider this example
The second implementation is more verbose because we had to write some function objects, but it enables easier composition.
mp11 doesn't have useful function objects to compose with this feature, but higher order function libraries do.
The text was updated successfully, but these errors were encountered: