Skip to content

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