September 2017 Update

This commit is contained in:
Ingy döt Net 2017-09-23 10:01:46 +02:00
parent bba7bfd280
commit ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions

View file

@ -1,9 +1,9 @@
my &if2 = -> \a, \b, &x { my @*IF2 = ?a,?b; x }
my &if-both = -> &x { x if @*IF2 ~~ (True,True) }
my &if-first = -> &x { x if @*IF2 ~~ (True,False) }
my &if-second = -> &x { x if @*IF2 ~~ (False,True) }
my &if-neither = -> &x { x if @*IF2 ~~ (False,False)}
my &if-both = -> &x { x if @*IF2 eq (True,True) }
my &if-first = -> &x { x if @*IF2 eq (True,False) }
my &if-second = -> &x { x if @*IF2 eq (False,True) }
my &if-neither = -> &x { x if @*IF2 eq (False,False)}
sub test ($a,$b) {
$_ = "G"; # Demo correct scoping of topic.
@ -18,7 +18,4 @@ sub test ($a,$b) {
}
}
test 1,1;
test 1,0;
test 0,1;
test 0,0;
say test |$_ for 1,0 X 1,0;