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%bind #12

Open
nenofite opened this issue Apr 11, 2021 · 0 comments
Open

for%bind #12

nenofite opened this issue Apr 11, 2021 · 0 comments
Labels
forwarded-to-js-devs This report has been forwarded to Jane Street's internal review system.

Comments

@nenofite
Copy link

👋 Similar to the support for while%bind, would it be possible to add support for for%bind? I imagine something like this:

Expand for%bind i = min to max do expr done as

let rec loop i =
  if i < max then
    let%bind () = expr i in
    loop (i + 1)
  else expr i
in
loop min
@github-iron github-iron added the forwarded-to-js-devs This report has been forwarded to Jane Street's internal review system. label Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forwarded-to-js-devs This report has been forwarded to Jane Street's internal review system.
Projects
None yet
Development

No branches or pull requests

2 participants