Skip to content

Instantly share code, notes, and snippets.

@ab5tract
Created August 29, 2015 09:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ab5tract/ebda98cc14e25881adbd to your computer and use it in GitHub Desktop.
Save ab5tract/ebda98cc14e25881adbd to your computer and use it in GitHub Desktop.
commit d96dccd1737ed4ab7e5cf293a178f7d28aa1e1f1
Author: ab5tract <john.haltiwanger@gmail.com>
Date: Sat Aug 29 11:41:11 2015 +0200
Coercion from Set.list (via Any) is bonkers
diff --git a/src/core/Setty.pm b/src/core/Setty.pm
index e86b44d..4e491e0 100644
--- a/src/core/Setty.pm
+++ b/src/core/Setty.pm
@@ -89,6 +89,9 @@ my role Setty does QuantHash {
);
}
+ method Bag { Bag.new( %!elems.values ) }
+ method BagHash { BagHash.new( %!elems.values ) }
+
# TODO: WHICH will require the capability for >1 pointer in ObjAt
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment