diff options
author | ugexe <nlogan@gmail.com> | 2014-11-16 12:16:26 -0500 |
---|---|---|
committer | ugexe <nlogan@gmail.com> | 2014-11-16 12:16:26 -0500 |
commit | acbea221a4037ff34ebf8a9b76b47aaec3c0c755 (patch) | |
tree | 2f9aab9c854978c267a765858187280e5401addf | |
parent | 191e755c8f371991c027c1b14df8ccbcda14071e (diff) |
0 // 5 = 0
11:59 < nebuchadnezzar> m: say Any // Nil // 0 // 5
11:59 <+camelia> rakudo-moar 38e77b: OUTPUT«0»
11:59 < nebuchadnezzar> shouldn't it be 5?
12:00 < ugexe> 0 is a defined value
12:00 < ugexe> m: say Any || Nil || 0 || 5;
12:00 <+camelia> rakudo-moar 38e77b: OUTPUT«5»
-rw-r--r-- | perl6.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl6.html.markdown b/perl6.html.markdown index 9f3a03ba..b178de1e 100644 --- a/perl6.html.markdown +++ b/perl6.html.markdown @@ -1177,7 +1177,7 @@ $obj eqv $obj2; # sort comparison using eqv semantics ## * Short-circuit default operator # Like `or` and `||`, but instead returns the first *defined* value : -say Any // Nil // 0 // 5; #=> 5 +say Any // Nil // 0 // 5; #=> 0 ## * Short-circuit exclusive or (XOR) # Returns `True` if one (and only one) of its arguments is true |