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

Added stepped ranges #475

Merged
merged 5 commits into from Jul 27, 2017
Merged

Added stepped ranges #475

merged 5 commits into from Jul 27, 2017

Conversation

drosseau
Copy link
Contributor

@drosseau drosseau commented Jul 27, 2017

Half of #457

Syntax is now:
{1..2...7} -> 1 3 5 7
{1..2..7} -> 1 3 5
{a..2...e} -> a c e
{a..2..e} -> a c

and similarly for backwards and negatives.

Also added some tests to the examples dir.

(I'm not sure why those two earlier commits are in this.. I let my repo get messed up somehow)

@mmstick
Copy link
Contributor

mmstick commented Jul 27, 2017

Thanks!

@mmstick mmstick merged commit 6476033 into redox-os:master Jul 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants