aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-139/luca-ferrari/raku/ch-1.p66
1 files changed, 6 insertions, 0 deletions
diff --git a/challenge-139/luca-ferrari/raku/ch-1.p6 b/challenge-139/luca-ferrari/raku/ch-1.p6
new file mode 100644
index 0000000000..6a91ea2e47
--- /dev/null
+++ b/challenge-139/luca-ferrari/raku/ch-1.p6
@@ -0,0 +1,6 @@
+#!raku
+
+sub MAIN( *@n where { @n.elems > 0 && @n.grep( * ~~ Int ).elems == @n.elems } ) {
+ '1'.say and exit if @n ~~ @n.sort;
+ '0'.say;
+}