Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Pangram-checker/APL/pangram-checker.apl
Normal file
8
Task/Pangram-checker/APL/pangram-checker.apl
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
a←'abcdefghijklmnopqrstuvwxyz' ⍝ or ⎕ucs 96 + ⍳26 in GNU/Dyalog
|
||||
A←'ABCDEFGHIJKLMNOPQRSTUVWXYZ' ⍝ or ⎕ucs 64 + ⍳26, or just ⎕a in Dyalog
|
||||
|
||||
Pangram ← {∧/ ∨⌿ 2 26⍴(a,A) ∊ ⍵}
|
||||
Pangram 'This should fail'
|
||||
0
|
||||
Pangram 'The quick brown fox jumps over the lazy dog'
|
||||
1
|
||||
Loading…
Add table
Add a link
Reference in a new issue