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

Parse 'as' keyword in parameters #17

Closed
tunguski opened this issue Apr 22, 2017 · 0 comments
Closed

Parse 'as' keyword in parameters #17

tunguski opened this issue Apr 22, 2017 · 0 comments

Comments

@tunguski
Copy link
Owner

split : State -> (State, State)
split (State s1 s2 as std) =
  let
    new_s1 =
      if s1 == magicNum6-1 then 1 else s1 + 1

    new_s2 =
      if s2 == 1 then magicNum7-1 else s2 - 1

    (State t1 t2) =
      Tuple.second (next std)
  in
    (State new_s1 t2, State t1 new_s2)
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