cwchen icon

[Perl 6] Iterating a hash by values.

cwchen | PRO | 10/28/17 11:19:53 PM UTC | 0 ⭐ | 1545 👁️ | Never ⏰ | []
Perl 6 |

0 B

|

None

|

0 👍

/

0 👎

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

Comments