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

Implement reverse and sort in array prototype #33

Closed
71104 opened this issue Dec 28, 2014 · 2 comments
Closed

Implement reverse and sort in array prototype #33

71104 opened this issue Dec 28, 2014 · 2 comments
Assignees

Comments

@71104
Copy link
Owner

71104 commented Dec 28, 2014

Examples:

{1, 2, 3, 4, 5}.reverse
# { 5, 4, 3, 2, 1 }

{3, 2, 5, 1, 4}.sort <=
# { 1, 2, 3, 4, 5 }

Notes:

  • reverse is evaluated lazily.
  • sort accepts one argument, a partial order relationship. This differs from JavaScript.
@71104 71104 self-assigned this Dec 28, 2014
@71104
Copy link
Owner Author

71104 commented Jul 11, 2015

sort has been implemented in d14eb18.

@71104 71104 mentioned this issue Aug 21, 2015
@71104
Copy link
Owner Author

71104 commented Aug 21, 2015

Done.

@71104 71104 closed this as completed Aug 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant