aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-153/conor-hoekstra/ch-1.apl6
-rw-r--r--challenge-153/conor-hoekstra/ch-2.apl5
2 files changed, 11 insertions, 0 deletions
diff --git a/challenge-153/conor-hoekstra/ch-1.apl b/challenge-153/conor-hoekstra/ch-1.apl
new file mode 100644
index 0000000000..54b969fc95
--- /dev/null
+++ b/challenge-153/conor-hoekstra/ch-1.apl
@@ -0,0 +1,6 @@
+⍝ Left factorials from 1 to 10
+{+/!¯1+⍳⍵}¨⍳10
+
+⍝ Output
+1 2 4 10 34 154 874 5914 46234 409114
+
diff --git a/challenge-153/conor-hoekstra/ch-2.apl b/challenge-153/conor-hoekstra/ch-2.apl
new file mode 100644
index 0000000000..f3664382e4
--- /dev/null
+++ b/challenge-153/conor-hoekstra/ch-2.apl
@@ -0,0 +1,5 @@
+factorian ← {⍵=+/!10(⊥⍣¯1)⍵}
+
+⍝ Tests
+factorian ¨ 145 123 ⍝ 1 0
+