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

Update List constructor to act like of for non-array values #75

Merged
merged 1 commit into from
Feb 18, 2017

Conversation

evilsoft
Copy link
Owner

The Naan Array

This PR addresses the first item on this issue.

It allows the List constructor to do one of two things. If it receives in Array it will slice it and use that as the wrapped value. But if it receives any other value, it will lift that value into an Array for use internally.

It will still throw if it receives no input.

@coveralls
Copy link

coveralls commented Feb 18, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling 024966d on list-construction into d698ec7 on 0.3.0.

@evilsoft
Copy link
Owner Author

@evilsoft evilsoft merged commit 1172dc0 into 0.3.0 Feb 18, 2017
@evilsoft evilsoft deleted the list-construction branch February 18, 2017 22:51
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