Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hyperoperator direction working with hashes #3283

Open
Curefab opened this issue Mar 26, 2020 · 1 comment
Open

Hyperoperator direction working with hashes #3283

Curefab opened this issue Mar 26, 2020 · 1 comment
Labels
bug Error of some kind, from a typo to errors in the examples. docs Documentation issue (primary issue type)

Comments

@Curefab
Copy link

Curefab commented Mar 26, 2020

The problem

The docs at doc/doc/Language/operators.pod6:478 state:
%outer »+» %inner; only keys of %inner that exist in %outer will occur in the result

This is wrong, as can be tried out with a modified example

my %outer = 1, 2, 3 Z=> <a b c>;
my %inner = 4, 1, 2 Z=> <v x z>;
say %outer »~» %inner;
-> Output is: {1 => ax, 2 => bz, 3 => c}

3 is not a key of %inner!

Suggestions

change "only keys of %inner that exist in %outer will occur in the result" to "the keys of %outer will occur in the result"

@JJ JJ added bug Error of some kind, from a typo to errors in the examples. docs Documentation issue (primary issue type) labels Mar 26, 2020
@JJ
Copy link
Contributor

JJ commented Mar 26, 2020

Will check. Thanks for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Error of some kind, from a typo to errors in the examples. docs Documentation issue (primary issue type)
Projects
None yet
Development

No branches or pull requests

2 participants