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

Operators cannot be mixed in the order given <= : #2

Open
ovidiugabriel opened this issue Sep 22, 2020 · 2 comments
Open

Operators cannot be mixed in the order given <= : #2

ovidiugabriel opened this issue Sep 22, 2020 · 2 comments

Comments

@ovidiugabriel
Copy link

Trying to run the example on the first page with DrRacket, version 7.7

#lang planet breuleux/liso

fib[n] =
   @if n <= 1:
      n
      fib[n - 1] + fib[n - 2]

fib[30]

I get the following error.

Welcome to DrRacket, version 7.7 [3m].
Language: planet breuleux/liso, with debugging; memory limit: 128 MB.
Operators cannot be mixed in the order given <= :

Interactions disabled.
@ovidiugabriel
Copy link
Author

ovidiugabriel commented Apr 28, 2021

When running fact.liso

Operators cannot be mixed in the order given ! :

And so on.

@breuleux
Copy link
Owner

Yeah, I don't know, it's been too long 😬

You can try putting parentheses around n <= 1, I suppose.

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

2 participants