cwchen icon

[Perl 6] Iterating a hash by keys.

cwchen | PRO | 10/28/17 11:18:58 PM UTC | 0 ⭐ | 1596 👁️ | Never ⏰ | []
Perl 6 |

0 B

|

None

|

0 👍

/

0 👎

my %hash = one => "eins", two => "zwei", three => "drei";
 
for %hash.keys -> $k {
    %hash{$k}.say;
}

Comments