Skip to content

Instantly share code, notes, and snippets.

@niner
Created August 20, 2015 21:40
Show Gist options
  • Save niner/c7137af6c613bdef985d to your computer and use it in GitHub Desktop.
Save niner/c7137af6c613bdef985d to your computer and use it in GitHub Desktop.
diff --git a/src/core/Hash.pm b/src/core/Hash.pm
index 0fc44ad..8656943 100644
--- a/src/core/Hash.pm
+++ b/src/core/Hash.pm
@@ -44,8 +44,8 @@ my class Hash { # declared in BOOTSTRAP
}
multi method perl(Hash:D \SELF:) {
- '$' x nqp::iscont(SELF) ~
'{' ~ SELF.pairs.sort.map({.perl}).join(', ') ~ '}'
+ ~ '.item' x nqp::iscont(SELF)
}
multi method gist(Hash:D:) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment