Challenge :
Given a word, check whether or not it is an isogram.
What :
An isogram is a word consisting only of letters with no duplicates (case insensitive). The empty string is an isogram.
Examples :
"Dermatoglyphics" ---> true
"ab" ---> true
"aba" ---> false
"moOse" ---> false
"abc1" ---> false
"" ---> true
Input :
You may accept input in any reasonable format
The input will only contain letters and/or numbers, no spaces ([a-zA-Z0-9]
)
Output :
true
or any truthy value if the input is an isogramfalse
or any falsy value otherwise
This is code-golf so shortest code in bytes in each language wins.
sad2
\$\endgroup\$sad2das
would fail even without the2
so it doesn't show anything). \$\endgroup\$