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

Add a range() function #5026

Closed
pwithnall opened this issue Mar 6, 2019 · 1 comment · Fixed by #8311
Closed

Add a range() function #5026

pwithnall opened this issue Mar 6, 2019 · 1 comment · Fixed by #8311

Comments

@pwithnall
Copy link
Contributor

Like Python’s range()/xrange() functions, but usable from meson.build. This would be useful in combination with foreach for generating lists of things and operating on them.

My particular use case is to generate a list of all old stable versions (something like range($first_stable_release, $next_stable_release, 2)) so they can be passed as arguments to a build process.

@michaelcadilhac
Copy link

Another use case (if that's appropriate): I have 164 test files, I'm running a script on each of them. The file names are all something like testN.txt, with N in 1..164, and I'd rather build the set of test files using a loop.

xclaesse added a commit to xclaesse/meson that referenced this issue Feb 6, 2021
xclaesse added a commit to xclaesse/meson that referenced this issue Feb 6, 2021
xclaesse added a commit to xclaesse/meson that referenced this issue Feb 7, 2021
xclaesse added a commit to xclaesse/meson that referenced this issue Feb 7, 2021
xclaesse added a commit to xclaesse/meson that referenced this issue Feb 7, 2021
xclaesse added a commit to xclaesse/meson that referenced this issue Feb 7, 2021
xclaesse added a commit to xclaesse/meson that referenced this issue Feb 20, 2021
xclaesse added a commit to xclaesse/meson that referenced this issue Feb 21, 2021
xclaesse added a commit to xclaesse/meson that referenced this issue Mar 10, 2021
xclaesse added a commit to xclaesse/meson that referenced this issue Mar 10, 2021
xclaesse added a commit that referenced this issue Mar 17, 2021
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 a pull request may close this issue.

2 participants