Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    );
    
    say for @array;
    
  2. or download this
    1+8i
    2+5i
    6+4i
    
  3. or download this
    use strict;
    use warnings;
    ...
    my @array = pairmap {cplx($a, $b)} (1, 8, 2, 5, 6, 4);
    
    say for @array;
    
  4. or download this
    use strict;
    use warnings;
    ...
        for ([1,8], [2,5], [6,4]);
    
    say for @array;