This commit is contained in:
pca006132 2021-06-09 09:45:05 +08:00
parent ae12c946c5
commit a642e37b9a
1 changed files with 11 additions and 0 deletions

View File

@ -157,6 +157,17 @@ class Foo(EnvExperiment):
* Type variable cannot occur alone in the result type, i.e. must be bound to the
input parameters.
## For loop unrolling (#12)
A pseudocomment can be used for unrolling for loops that iterates a fixed amount
of time. This can be used for iterating over inhomogeneous tuples. Example:
```python
params = (1, 1.5, "foo")
# nac3:unroll
for p in params:
print(p)
```
## Lifetime
Probably need more discussions...