-
-
Save lizmat/d63d0ed8e4c8cedfb8e2e037fa0a6813 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
#! /usr/bin/env raku; | |
my subset Spanish where .starts-with( 「¿」 ); | |
my subset English where !.starts-with( 「¿」 ) && .ends-with( 「?」 ); | |
multi query (Spanish $_) { 「A Spanish question」 } | |
multi query (English $_) { 「An English question」 } | |
say query( 'Hello World?' ); | |
say query( '¿Hello World?' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment