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

How can I define a recursive function without creating a new value? #329

Open
mhagmajer opened this issue Jul 3, 2020 · 1 comment
Open
Labels
discussion A discussion is taking place, please don't work on it yet

Comments

@mhagmajer
Copy link
Contributor

No description provided.

@czerwinskilukasz1 czerwinskilukasz1 added the discussion A discussion is taking place, please don't work on it yet label Jul 6, 2020
@czerwinskilukasz1
Copy link
Collaborator

Are you thinking of use cases like:

call(fun(n:int) {
  if (n < 2) {
    1
  } else {
    this(n-1) + this(n-2)
  }
})

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion A discussion is taking place, please don't work on it yet
Projects
None yet
Development

No branches or pull requests

2 participants