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

DSL: add xrange() #7777

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

DSL: add xrange() #7777

wants to merge 3 commits into from

Conversation

Al2Klimov
Copy link
Member

No description provided.

@Al2Klimov
Copy link
Member Author

Blocked by

@Al2Klimov
Copy link
Member Author

Icinga 2 (version: v2.11.0-475-g309756446)
Type $help to view available commands.
<1> => xrange(10)
{
	type = "Generator"
}
<2> => xrange(10).to_array()
[ 0.000000, 1.000000, 2.000000, 3.000000, 4.000000, 5.000000, 6.000000, 7.000000, 8.000000, 9.000000 ]
<3> => xrange(1000000000000).unique().contains(42)
true
<4> =>

@Al2Klimov Al2Klimov added this to the 2.13.0 milestone Mar 17, 2020
@julianbrost julianbrost removed this from the 2.13.0 milestone May 31, 2021
@Al2Klimov
Copy link
Member Author

@cla-bot check

@cla-bot cla-bot bot added the cla/signed label Aug 4, 2021
@Al2Klimov Al2Klimov added the enhancement New feature or request label Aug 10, 2021
@julianbrost
Copy link
Contributor

I'd avoid making the DSL more complex unless there's a good reason to do so.

@Al2Klimov
Copy link
Member Author

Let's discuss this after #7776 as this stands and falls with that PR.

@Al2Klimov Al2Klimov removed their assignment Jan 31, 2023
@Al2Klimov Al2Klimov self-assigned this Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla/signed enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants