Created
December 30, 2015 16:11
-
-
Save zoffixznet/991b1a645d711ee57884 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ZoffixW> m: my $x = {'countries' => [{'cities' => [],'name' => 'Canada'}]}; for |$x<countries> -> $country { say $country<name>; say $country<cities>.elems } | |
<camelia> rakudo-moar d08e04: OUTPUT«CanadaMethod 'elems' not found for invocant of class 'Mu' in block <unit> at /tmp/46zMQM9XjX line 1» | |
<ZoffixW> m: my $x = {'countries' => [{'cities' => [],'name' => 'Canada'},]}; for |$x<countries> -> $country { say $country<name>; say $country<cities>.elems } | |
<camelia> rakudo-moar d08e04: OUTPUT«Canada0» |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment