diff options
author | Boris Verkhovskiy <boris.verk@gmail.com> | 2024-04-03 04:31:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-03 04:31:13 -0700 |
commit | fbf132752b743d0f43c3395da0699bee53da22df (patch) | |
tree | 56da43c86e1aebd24e3913b405e21d6f2812e9a3 /raku.html.markdown | |
parent | 247dc6e86c1421fa031e4b61c42c05ca6e09bfb0 (diff) | |
parent | c166f2acb295627c5ae305a6dd517a27ca8fece6 (diff) |
Merge branch 'master' into patch-1
Diffstat (limited to 'raku.html.markdown')
-rw-r--r-- | raku.html.markdown | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/raku.html.markdown b/raku.html.markdown index a8059791..39bc0e51 100644 --- a/raku.html.markdown +++ b/raku.html.markdown @@ -122,7 +122,7 @@ say @array; # OUTPUT: «a 6 b» # context, and any duplicated keys are deduplicated. my %hash = 'a' => 1, 'b' => 2; -# Keys get auto-quoted when the fat comman (`=>`) is used. Trailing commas are +# Keys get auto-quoted when the fat comma (`=>`) is used. Trailing commas are # okay. %hash = a => 1, b => 2, ; @@ -688,7 +688,7 @@ say (0 or False); # OUTPUT: «False». my ($a, $b, $c, $d, $e) = 1, 0, False, True, 'pi'; say $a && $b && $c; # OUTPUT: «0», the first falsey value say $a && $b && $c; # OUTPUT: «False», the first falsey value -say $a && $d && $e; # OUTPUT: «pi», last operand since everthing before is truthy +say $a && $d && $e; # OUTPUT: «pi», last operand since everything before is truthy # `||` returns the first argument that evaluates to `True`. say $b || $a || $d; # OUTPUT: «1» @@ -1965,7 +1965,7 @@ say so 'abbbbc' ~~ / a b* c /; # OUTPUT: «True» say so 'aec' ~~ / a b* c /; # OUTPUT: «False», "b"(s) are optional, not replaceable. # `**` - (Unbound) Quantifier -# If you squint hard enough, you might understand why exponentation is used +# If you squint hard enough, you might understand why exponentiation is used # for quantity. say so 'abc' ~~ / a b**1 c /; # OUTPUT: «True», exactly one time say so 'abc' ~~ / a b**1..3 c /; # OUTPUT: «True», one to three times |