diff options
| -rw-r--r-- | challenge-140/ash/raku/ch-2.raku | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/challenge-140/ash/raku/ch-2.raku b/challenge-140/ash/raku/ch-2.raku new file mode 100644 index 0000000000..7804aff7de --- /dev/null +++ b/challenge-140/ash/raku/ch-2.raku @@ -0,0 +1,5 @@ +# This is definitely is not efficient, but it displays the power of Raku syntax. + +sub MAIN($a, $b, $n) { + say (sort 1..$a X* 1..$b)[$n - 1] +} |
