Help for this page

Select Code to Download


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