2018-10: Anagrammatically Correct
An anagram is a word or phrase that can be formed by rearranging the letters of another. For instance, 'stained' and 'instead' are anagrams, as are 'emigrants' and 'streaming'. Spaces are not considered significant in the comparison.
Write an APL function that takes left and right arguments of character scalars or vectors returns a 1
if the arguments are anagrams of one another, 0
otherwise. You may assume that both arguments are both either upper-case or lower-case.
Examples:
'ALBERT EINSTEIN' (your_function) 'TEN ELITE BRAINS'
1
'' (your_function) ''
1
'd' (your_function) 'd'
1
'mesas' (your_function) 'seam'
0
'apple' (your_function) 'lapel'
0
your_function ←
Solutions

