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
static compilation of tables
#sine table table sineTable 1024: return sin((i / 1023.0) * twopi)
The text was updated successfully, but these errors were encountered:
Internally, const + block is the way to go:
const
block
const mytable : array[100, float] = block: var t : array[100, float] for i in 0..<100: t[i] = float(i) t
Sorry, something went wrong.
No branches or pull requests
static compilation of tables
The text was updated successfully, but these errors were encountered: