aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xchallenge-044/feng-chang/ch-1.raku15
1 files changed, 15 insertions, 0 deletions
diff --git a/challenge-044/feng-chang/ch-1.raku b/challenge-044/feng-chang/ch-1.raku
new file mode 100755
index 0000000000..07e0cb40e8
--- /dev/null
+++ b/challenge-044/feng-chang/ch-1.raku
@@ -0,0 +1,15 @@
+#!/bin/env raku
+
+use MONKEY-SEE-NO-EVAL;
+
+my @even = 0, 2 ... 16;
+my @odd = 1, 3 ... 15;
+
+my @a;
+@a[@even] = '123456789'.combĀ».UInt;
+
+for [X] (['', '+', '-'] xx 8) -> @ops {
+ @a[@odd] = @ops;
+ my $s = @a.join;
+ put $s if EVAL($s) == 100;
+}