Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created October 23, 2021 23:40
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 Whateverable/6324e746f164c4b2b8ecde10a1de95a6 to your computer and use it in GitHub Desktop.
Save Whateverable/6324e746f164c4b2b8ecde10a1de95a6 to your computer and use it in GitHub Desktop.
Whateverable
2021-07-13T04:04:09Z #raku-dev <Xliff> ToddAndMargo Actually, this one works... class AA { has @.I; submethod BUILD (:$data) { @!I[.key] = .value for $data[] }; method new (*@data) { self.bless( data => @data ) }; }; AA.new(2 => 'b', 4 => 66, 9 => 'apples').gist.say;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment