Skip to content

Commit

Permalink
Make all QuantHash.gist use the same format
Browse files Browse the repository at this point in the history
- type name up front
- no comma's

Spotted while preparing presentation for the GPaRW 2020
  • Loading branch information
lizmat committed Mar 3, 2020
1 parent 830e082 commit cf01f7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/core.c/Baggy.pm6
Expand Up @@ -312,7 +312,7 @@ my role Baggy does QuantHash {
nqp::concat(
nqp::concat(
nqp::concat(self.^name,'('),
nqp::join(', ',
nqp::join(' ',
Rakudo::Sorting.MERGESORT-str(
Rakudo::QuantHash.RAW-VALUES-MAP(self, {
nqp::if(
Expand Down
6 changes: 1 addition & 5 deletions src/core.c/Setty.pm6
Expand Up @@ -146,11 +146,7 @@ my role Setty does QuantHash {
multi method gist(Setty:D $ : --> Str:D) {
nqp::concat(
nqp::concat(
nqp::if(
nqp::istype(self,Set),
'set(',
nqp::concat(self.^name,'(')
),
nqp::concat(self.^name,'('),
nqp::join(" ",
Rakudo::Sorting.MERGESORT-str(
Rakudo::QuantHash.RAW-VALUES-MAP(self, *.gist)
Expand Down

0 comments on commit cf01f7a

Please sign in to comment.