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

For loops? #83

Open
kach opened this issue Jan 15, 2025 · 1 comment
Open

For loops? #83

kach opened this issue Jan 15, 2025 · 1 comment

Comments

@kach
Copy link
Owner

kach commented Jan 15, 2025

  • Would only be allowed at the top-level
  • Would only be allowed to be over range()
  • Loop variable would be like a Parameter
  • Could be used to dynamically generate choices like a_i? a@i?
@kach
Copy link
Owner Author

kach commented Jan 15, 2025

Sample syntax along the lines Tony and I were thinking:

for i in seq(N):
    alice: chooses(c@i in Coin, wpp=1)
    bob: observes [alice.c@i] is alice.c@i

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

No branches or pull requests

1 participant