Exponentiation with infix operators in (or operating on) the base: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: like Go comment) |
Thundergnat (talk | contribs) (→{{header|Raku}}: DRY) |
||
Line 218: | Line 218: | ||
-> $message, $ops { |
-> $message, $ops { |
||
say $message; |
say $message; |
||
for -5, |
for -5, 5 X 2, 3 -> ($x, $p) { |
||
printf "x = %2d p = %d", $x, $p; |
printf "x = %2d p = %d", $x, $p; |
||
-> $op { printf " │ %s = %4d", $op, EVAL $op } for |$ops; |
-> $op { printf " │ %s = %4d", $op, EVAL $op } for |$ops; |