Skip to content

Instantly share code, notes, and snippets.

@jonathanstowe
Created March 25, 2017 10:03
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 jonathanstowe/d9f6c9a67f5af2002620757277336aa7 to your computer and use it in GitHub Desktop.
Save jonathanstowe/d9f6c9a67f5af2002620757277336aa7 to your computer and use it in GitHub Desktop.
Asspciative
my Str %x{subset :: of Str where any("ble", "blob")};
say %x.WHAT;
say %x.of;
class C {
has Str %.bla{subset :: of Str where any("ble", "blob")}
};
for C.^attributes -> $attr {
say $attr.type;
say $attr.type.of;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment