diff options
| author | Mohammad S Anwar <Mohammad.Anwar@yahoo.com> | 2022-02-23 17:58:58 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-23 17:58:58 +0000 |
| commit | 8d6948f7b2592f5cbc4172982e06b670c545b8ff (patch) | |
| tree | 198f70e1b282d3ccc58824605f39d64563b44aea | |
| parent | b44719f171b42ef306e7e50933125b7b1371b38d (diff) | |
| parent | 5c4f97c2cd5bd9ebfa7c84a440a78a8449645a6e (diff) | |
| download | perlweeklychallenge-club-8d6948f7b2592f5cbc4172982e06b670c545b8ff.tar.gz perlweeklychallenge-club-8d6948f7b2592f5cbc4172982e06b670c545b8ff.tar.bz2 perlweeklychallenge-club-8d6948f7b2592f5cbc4172982e06b670c545b8ff.zip | |
Merge pull request #5699 from codereport/master
Week 153 in APL
| -rw-r--r-- | challenge-153/conor-hoekstra/ch-1.apl | 6 | ||||
| -rw-r--r-- | challenge-153/conor-hoekstra/ch-2.apl | 5 |
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 + |
