aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-054/simon-proctor/raku/ch-1.p62
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge-054/simon-proctor/raku/ch-1.p6 b/challenge-054/simon-proctor/raku/ch-1.p6
index 3670fe4fda..54ef95fd78 100644
--- a/challenge-054/simon-proctor/raku/ch-1.p6
+++ b/challenge-054/simon-proctor/raku/ch-1.p6
@@ -3,6 +3,6 @@
use v6;
#| Print the kth permutation of the numbers from 1 to n
-sub MAIN( UInt \n, Int \k where * >= 1 ) {
+sub MAIN( UInt \n, Int \k where { 1 <= k <= [*] 1..n } ) {
(1..n).permutations[k-1].join("").say;
}