This commit is contained in:
pca006132 2021-06-09 09:45:05 +08:00
parent ae12c946c5
commit a642e37b9a

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 * Type variable cannot occur alone in the result type, i.e. must be bound to the
input parameters. 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 ## Lifetime
Probably need more discussions... Probably need more discussions...