Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use functor map implementation for sequences when applicable #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

countvajhula
Copy link

Fixes #11.

At the moment, it looks like map delegates sequence input to the data/collection version of map in order to leverage the "zip" behavior when more than one sequence input is provided, in which case the functor implementation would be inapplicable in any case. This fix modifies that condition to specifically check for the presence of more than one input sequence before delegating. Otherwise, it uses the functor implementation, including for the case of a lone sequence.

@coveralls
Copy link

coveralls commented Sep 23, 2020

Coverage Status

Coverage decreased (-1.1%) to 89.286% when pulling a3a35ab on countvajhula:functor-sequence-priority into d42bad2 on lexi-lambda:master.

@countvajhula countvajhula force-pushed the functor-sequence-priority branch from 0427be0 to a3a35ab Compare September 23, 2020 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: functor map should have priority over sequence map
2 participants