We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
func int() fun(){ int a = 0; int b = 1; int fibonacci(){ int c = a; a = b; b = a+c; return c; } return fibonacci; } func int() f = fib(); for (int i = 0; i < 10; i++){ println(f()); }
感觉这里第一行定义疑似应该是 func int() fib() { ... }.
func int() fib() { ... }
The text was updated successfully, but these errors were encountered:
多谢提醒,已经修改。 https://github.com/crossoverJie/gscript/blob/main/example/fib.gs 这里的 demo 是可以直接运行的。
Sorry, something went wrong.
No branches or pull requests
感觉这里第一行定义疑似应该是
func int() fib() { ... }
.The text was updated successfully, but these errors were encountered: