Exponentiation with infix operators in (or operating on) the base: Difference between revisions
Exponentiation with infix operators in (or operating on) the base (view source)
Revision as of 02:51, 27 September 2022
, 1 year ago→{{header|Raku}}: use Unicode '∧' in place of ASCII '^', to avoid warning
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
SqrtNegInf (talk | contribs) m (→{{header|Raku}}: use Unicode '∧' in place of ASCII '^', to avoid warning) |
||
Line 749:
<syntaxhighlight lang="raku" line>sub infix:<↑> is looser(&prefix:<->) { $^a ** $^b }
sub infix:<
use MONKEY;
Line 760:
"\nEven moreso: custom looser infix exponentiation is looser (lower) precedence than infix subtraction.",
('1 + -$
-> $message, $ops {
say $message;
Line 783:
Even moreso: custom looser infix exponentiation is looser (lower) precedence than infix subtraction.
x = -5 p = 2 │ 1 + -$
x = -5 p = 3 │ 1 + -$
x = 5 p = 2 │ 1 + -$
x = 5 p = 3 │ 1 + -$
=={{header|REXX}}==
|