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

Do not fail on mapping empty collections #13

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

Conversation

vladimir-kotikov
Copy link

@vladimir-kotikov vladimir-kotikov commented Aug 28, 2023

This is quite natural for map function to be a no-op and return an empty collection when input is also empty (the examples are the python's own map function and nodejs' array.map) rather than throwing an error which it does at the moment.

Itermap does seem to be working this way already bu i've added a test for an empty input as well, just in case.

This is quite natural for map function to be a no-op and return an empty collection when input is also empty (the examples are the python's own map funvtion and nodejs' array.map function) rather than throwing an error which it does at the moment.
@PrzemyslawSagalo
Copy link

Hi, is there any possibility of merging this feature?

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.

None yet

2 participants