Commit 5b10f4e
committed
Miscellaneous documentation additions.
Added notes explaining how [expr, ..expr] form is used, targeted at
individuals like me who thought it was more general and handled
dynamic repeat expressions. (I left a TODO for this section in a
comment, but perhaps that is bad form for the manual...)
Added example of `do` syntax with a function of arity > 1; yes, one
should be able to derive this from the text above it, but it is still
a useful detail to compare and contrast against the arity == 1 case.
Added example of using for expression over a uint range, since someone
who is most used to write `for(int i; i < lim; i++) { ... }` will
likely want to know how to translate that form (regardless of whether
it happens to be good style or not for their use-case).
Added note about the semi-strange meaning of "fixed size" of vectors
in the vector type section.1 parent 125cdf5 commit 5b10f4e
1 file changed
+33
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1671 | 1671 | | |
1672 | 1672 | | |
1673 | 1673 | | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
1674 | 1680 | | |
1675 | 1681 | | |
1676 | 1682 | | |
| |||
2156 | 2162 | | |
2157 | 2163 | | |
2158 | 2164 | | |
| 2165 | + | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
| 2175 | + | |
| 2176 | + | |
| 2177 | + | |
2159 | 2178 | | |
2160 | 2179 | | |
2161 | 2180 | | |
| |||
2184 | 2203 | | |
2185 | 2204 | | |
2186 | 2205 | | |
2187 | | - | |
| 2206 | + | |
2188 | 2207 | | |
2189 | 2208 | | |
2190 | 2209 | | |
| |||
2198 | 2217 | | |
2199 | 2218 | | |
2200 | 2219 | | |
| 2220 | + | |
| 2221 | + | |
| 2222 | + | |
| 2223 | + | |
| 2224 | + | |
| 2225 | + | |
| 2226 | + | |
| 2227 | + | |
2201 | 2228 | | |
2202 | 2229 | | |
2203 | 2230 | | |
| |||
2474 | 2501 | | |
2475 | 2502 | | |
2476 | 2503 | | |
| 2504 | + | |
2477 | 2505 | | |
2478 | 2506 | | |
2479 | 2507 | | |
| |||
2484 | 2512 | | |
2485 | 2513 | | |
2486 | 2514 | | |
| 2515 | + | |
| 2516 | + | |
| 2517 | + | |
| 2518 | + | |
2487 | 2519 | | |
2488 | 2520 | | |
2489 | 2521 | | |
| |||
0 commit comments