From 9bb44d8dc10f9d50cda5ddf8c188f53928481b31 Mon Sep 17 00:00:00 2001 From: Conor Hoekstra Date: Thu, 2 Oct 2025 09:42:17 -0400 Subject: :sparkles: Week 341 Pt 1 in APL --- challenge-341/conor-hoekstra/apl/ch-1.apl | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 challenge-341/conor-hoekstra/apl/ch-1.apl diff --git a/challenge-341/conor-hoekstra/apl/ch-1.apl b/challenge-341/conor-hoekstra/apl/ch-1.apl new file mode 100644 index 0000000000..9c127486e5 --- /dev/null +++ b/challenge-341/conor-hoekstra/apl/ch-1.apl @@ -0,0 +1,8 @@ +BrokenKeyboard ← { ≢∪(∊∘⍺(⊢~⊢⍤/)(+\' '=⊢))⎕C⍵ } + +⍝ Tests + 'd' BrokenKeyboard 'Hello World' ⍝ 1 +'ae' BrokenKeyboard 'apple banana cherry' ⍝ 0 + '' BrokenKeyboard 'Coding is fun' ⍝ 3 +'ab' BrokenKeyboard 'The Weekly Challenge' ⍝ 2 + 'p' BrokenKeyboard 'Perl and Python' ⍝ 1 -- cgit