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

Fix collections/persistent/Lists.from() to return elements in the correct order #2754

Merged
merged 1 commit into from
Jun 6, 2018

Conversation

chalcolith
Copy link
Member

This change fixes Lists.from(), which returned a reversed list, and the associated test, which didn't actually call it.

The change also changes apply() to use from() so as to have a single implementation of making a list from a sequence.

…orrect order

This change fixed `Lists.from()`, which returned a reversed list, and the associated test, which didn't actually call it.

The change also changes `apply()` to use `from()` so as to have a single implementation of making a list from a sequence.
@chalcolith chalcolith added the changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge label Jun 6, 2018
@SeanTAllen
Copy link
Member

Is there a test we can add for this? I'd like to see a test before we merge.

@chalcolith
Copy link
Member Author

There already was a test, but it didn't actually call Lists.from(), it called Lists.apply(). Part of this change is to make the test call Lists.from().

@SeanTAllen
Copy link
Member

Yeah I missed that.

@SeanTAllen SeanTAllen merged commit 8144dce into ponylang:master Jun 6, 2018
@SeanTAllen SeanTAllen deleted the fix_persistent_list branch June 6, 2018 21:59
ponylang-main added a commit that referenced this pull request Jun 6, 2018
dipinhora pushed a commit to dipinhora/ponyc that referenced this pull request Jun 7, 2018
dipinhora pushed a commit to dipinhora/ponyc that referenced this pull request Jun 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants