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
| die 'term parameter list is not a list' if $term !~~ List; | |
| die 'term parameter has no type' if $term.elems !%% 2; | |
| my @names = $term[0, 2 ... *]; | |
| die 'term parameter name must be symbol' unless all(@names) ~~ Symbol; | |
| my @types = $term[1, 3 ... *].map({self.type-expr($_)}); | |
| (@names, @types); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment