Help for this page

Select Code to Download


  1. or download this
    my %hash;
    $hash{A}{A} = 1;
    ...
    foreach my $k (keys %{$hash{B}}) {
        print "$k - $hash{B}{$k}\n";
    }
    
  2. or download this
    #include <map>
    #include <string>
    ...
            cout << i->first << " - " << i->second << "\n";
        }
    }
    
  3. or download this
    using System;
    using System.Collections.Generic;
    ...
            }
        }
    }
    
  4. or download this
    my %hash;
    %hash{"A"}{"A"} = 1;
    ...
    for %hash{"B"}.kv -> $key, $value { 
        say "$key - $value" 
    }
    
  5. or download this
    using System;
    using System.Collections.Generic;
    ...
            }
        }
    }