daily pastebin goal
76%
SHARE
TWEET

[Perl 6] Iterating a hash by values.

cwchen Oct 28th, 2017 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. my %hash = one => "eins", two => "zwei", three => "drei";
  2.  
  3. for %hash.values -> $v {
  4.     $v.say;
  5. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top