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

Repeat incremented steps #29

Closed
mkruselj opened this issue May 26, 2015 · 5 comments
Closed

Repeat incremented steps #29

mkruselj opened this issue May 26, 2015 · 5 comments
Assignees
Milestone

Comments

@mkruselj
Copy link

Hello!

It would be extremely great if Text-Pastry could be able to repeat increments as in this example:

N M P R
1 2 0 1

or:

i(1,2,1)

results in:

1
1
3
3
5
5
7
7
etc.

Basically, R would be number of additional repeats of a particular increment.

Thank you!

@duydao
Copy link
Owner

duydao commented May 26, 2015

Sounds interesting and should be easy enough to implement/test. Thanks for the suggestion!

@duydao duydao self-assigned this May 26, 2015
@duydao duydao added this to the 1.4.8 milestone May 26, 2015
@mkruselj
Copy link
Author

Wow, thank you for an extremely fast reply! :)

@duydao
Copy link
Owner

duydao commented May 26, 2015

Added as suggested. You can also pass a named argument like this:

i 1 2 each=3

result:

1
1
1
3
3
3
5
5
5
7
7
7

@duydao duydao closed this as completed May 26, 2015
@mkruselj
Copy link
Author

Thank you!! :)

@duydao
Copy link
Owner

duydao commented May 26, 2015

Thanks for using Text Pastry!

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

2 participants