Skip to content

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.

2 participants