Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

Create a sequence with an iteration function #665

Open
Seddryck opened this issue Nov 18, 2021 · 0 comments
Open

Create a sequence with an iteration function #665

Seddryck opened this issue Nov 18, 2021 · 0 comments
Milestone

Comments

@Seddryck
Copy link
Owner

It would be helpful to be able to define a sequence with the help of an initial value, an iteration function defining the next value but also a boolean function defining if we need to continue the iteration. Typically we have a function f(x) = (y,boolean).

<loop-sentinel seed="1">
   <next-value  language="c-sharp">x + Random.Next()/10 </next-value>
   <condition language="c-sharp">Math.Pow(x,2) &lt; 1200</condition>
</loop>
@Seddryck Seddryck added this to the v2.1 milestone Nov 20, 2021
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