Added #12
This commit is contained in:
parent
ae12c946c5
commit
a642e37b9a
11
README.md
11
README.md
|
@ -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...
|
||||
|
||||
|
|
Loading…
Reference in New Issue