9. Make No Sound
In this problem, you’re asked to enter your own APL function, without giving it any arguments. Your function will be checked by the APL Challenge system using several tests to see whether it is correct.
In problem 6 you learnt about / which inserts the function to its left between the numbers in the list on its right. When applied to a table, it inserts the function between the numbers on each row, giving a list. For example:
2 7 1 8 ∘.= 1 6 1 8
0 0 0 0
0 0 0 0
1 0 1 0
0 0 0 1
+/ 2 7 1 8 ∘.= 1 6 1 8
0 0 2 1
Using + with / from problem 6, ∧ from problem 5 with \ and /, and = from problem 1, write a function that takes a word and counts how many leading consonants it has. For the purposes of this problem, use 'AEIOU' as your list of vowels (non-consonants).