Created
November 21, 2016 19:03
-
-
Save zoffixznet/28a0b593032e191fe13ea73385f0966f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Card2 { | |
my @faces = <2 3 4 5 6 7 8 9 10 Jack Queen King Ace>; | |
subset Face of Str where * eq @faces.say; | |
has Face $.face is required; | |
} | |
dd Card2.new(:face('2')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment