2
2
3
3
= TITLE Statement prefixes
4
4
5
- = SUBTITLE Prefixes that alter the behavior of a statement of set of them
5
+ = SUBTITLE Prefixes that alter the behavior of a statement or a set of them
6
6
7
- Statement prefixes are not statements per se. They are written in front of a
7
+ Statement prefixes are written in front of a
8
8
statement, and change their meaning, their output, or the moment they are going
9
9
to be run. Since they have a specific behavior, they are also sometimes specific
10
- to some statement or statements.
10
+ to some statement or group of statements.
11
11
12
12
= head2 X < C < lazy > |lazy (statement prefix)>
13
13
14
- As a statement prefix, lazy acts in front of any statement, including C < for >
15
- loops, saving the execution for when the variable they are assigned for is
14
+ As a statement prefix, C < lazy > acts in front of any statement, including C < for >
15
+ loops, saving the execution for when the variable they are assigned to is
16
16
actually needed.
17
17
18
18
= for code
@@ -25,7 +25,7 @@ say eager $var; # OUTPUT: «(0 1 2 3)»
25
25
say $incremented; # OUTPUT: «4»
26
26
27
27
The C < $incremented > variable is only incremented, that is, the internal part of
28
- the loop is only run, when we eagerly evaluate the variable C < $var > that
28
+ the loop is only run when we eagerly evaluate the variable C < $var > that
29
29
contains the lazy loop. Eagerness can be applied on a variable in other ways,
30
30
such as calling the C < .eager > method on it.
31
31
0 commit comments