You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<ufobat> p6: my %h = gather { take "foo" => 1; take "bar" => 2}; say %h
<camelia> rakudo-moar defc2c5a4: OUTPUT: «{bar => 2, foo => 1}»
<ufobat> this is intentional, right?
<ufobat> because https://docs.perl6.org/syntax/gather%20take just talked about arrays
<moritz> it's the %h = that turns it into a hash
<moritz> the return value from gather/take is still a Seq
<ufobat> ah okay
<ufobat> i am still unhappy with the documentation because i almost discarded my idea of using gather/take for a hash
Suggestions
I am just posting this as an issue because it might be an good idea to mention that hash example in the documentation as well. It's just an idea.
The text was updated successfully, but these errors were encountered:
The Problem
Suggestions
I am just posting this as an issue because it might be an good idea to mention that hash example in the documentation as well. It's just an idea.
The text was updated successfully, but these errors were encountered: