aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-143/conor-hoekstra/ch-01.apl5
-rw-r--r--challenge-143/conor-hoekstra/ch-02.apl4
2 files changed, 9 insertions, 0 deletions
diff --git a/challenge-143/conor-hoekstra/ch-01.apl b/challenge-143/conor-hoekstra/ch-01.apl
new file mode 100644
index 0000000000..ec5e3506f0
--- /dev/null
+++ b/challenge-143/conor-hoekstra/ch-01.apl
@@ -0,0 +1,5 @@
+solution ← ⍎'×'@('*'∘=)
+
+⍝ Tests
+solution '10 + 20 - 5' ⍝ 25
+solution '(10 + 20 - 5) * 2' ⍝ 50
diff --git a/challenge-143/conor-hoekstra/ch-02.apl b/challenge-143/conor-hoekstra/ch-02.apl
new file mode 100644
index 0000000000..2c5bcceda9
--- /dev/null
+++ b/challenge-143/conor-hoekstra/ch-02.apl
@@ -0,0 +1,4 @@
+solution ← {1∊2-/(⍵∘÷+⊢)∪⍵∨⍳⌊⍵*.5}
+
+⍝ Tests
+solution ¨ 36 12 6 ⍝ 1 1 0