aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConor Hoekstra <codereport@outlook.com>2023-04-14 15:49:26 -0400
committerConor Hoekstra <codereport@outlook.com>2023-04-14 15:49:26 -0400
commite1bd98ffd35563222aa0078eb0d99aa3496b2dce (patch)
treee0ccd027f474185aee3e11de6964b908c723a5fa
parent33e769177db792d141f888c0d79a884292bc9bd9 (diff)
downloadperlweeklychallenge-club-e1bd98ffd35563222aa0078eb0d99aa3496b2dce.tar.gz
perlweeklychallenge-club-e1bd98ffd35563222aa0078eb0d99aa3496b2dce.tar.bz2
perlweeklychallenge-club-e1bd98ffd35563222aa0078eb0d99aa3496b2dce.zip
APL Solution to 212 P1
-rw-r--r--challenge-212/conor-hoekstra/ch-01.apl9
1 files changed, 9 insertions, 0 deletions
diff --git a/challenge-212/conor-hoekstra/ch-01.apl b/challenge-212/conor-hoekstra/ch-01.apl
new file mode 100644
index 0000000000..655a5db552
--- /dev/null
+++ b/challenge-212/conor-hoekstra/ch-01.apl
@@ -0,0 +1,9 @@
+LetterJump ← {
+ n ← ⎕UCS⍵
+ m ← 65+32×97≤n
+ ⎕UCS m+26|⍺+n-m
+}
+
+⍝ Tests
+2 22 19 9 LetterJump 'Perl' ⍝ Raku
+24 4 7 17 LetterJump 'Raku' ⍝ Perl