Say I want a snippet of code that gives me a 26 element array for letter frequency, i.e.:
{+⌿⍵∘.=⎕C⎕A} 'bcd'
0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
However, if you pass this a one letter string, you get:
{+⌿⍵∘.=⎕C⎕A} 'a'
1
How do I avoid this?