- or download this
package Foo;
my $i;
sub get { $i }
sub set { $i = shift; }
1
- or download this
const subrefs = [];
let i = 0;
...
for ( const subref of subrefs ) {
subref();
}
- or download this
3
3
3
- or download this
List<Action> subrefs = new();
int i = 0;
...
foreach ( var subref in subrefs ) {
subref();
}
- or download this
3
3
3
- or download this
subrefs = []
i = 0
...
for subref in subrefs:
subref()
- or download this
3
3
3