stuff that behaves differently in the qast-sink-1 branch
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
| my sub expand($s) { | |
| return $s.list if $s ~~ Iterable|Positional; | |
| gather for $s.comb(/ (\w) '..' (\w) | . /, :match) { | |
| if .[0] { | |
| take $_ for ~.[0] .. ~.[1]; | |
| } else { | |
| take ~$_; | |
| } | |
| } | |
| } | |
| say expand("A..BZ-").perl; | |
| say expand("a..c_").perl; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment