Skip to content

Commit

Permalink
More tests for Raku/doc#3910
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Jul 3, 2021
1 parent c5dafc7 commit ecdb4c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sub-export/lib/MakeQuestionable.rakumod
@@ -0,0 +1,4 @@
sub EXPORT(::Questionable) {
my multi postfix:<?>(Questionable $_) { .so };
Map.new: '&postfix:<?>' => &postfix:<?>,
}
3 changes: 3 additions & 0 deletions sub-export/questionable.raku
@@ -0,0 +1,3 @@
use lib 'lib';
use MakeQuestionable Cool;
say ( 0?, 1?, {}?, %( a => "b" )? ).join(' '); # OUTPUT: «False True False True␤»

0 comments on commit ecdb4c7

Please sign in to comment.