Pangram checker: Difference between revisions
Content deleted Content added
→{{header|Erlang}}: Switch to set implementation. |
→{{header|Ursala}}: Add Bash. |
||
Line 1,237: | Line 1,237: | ||
</pre> |
</pre> |
||
=={{header|UNIX Shell}}== |
|||
{{works with|Bourne Again SHell 4+}} |
|||
<lang bash>function pangram? { |
|||
local alphabet=abcdefghijklmnopqrstuvwxyz |
|||
local string="$*" |
|||
string="${string,,}" |
|||
while [[ -n "$string" && -n "$alphabet" ]]; do |
|||
local ch="${string%%${string#?}}" |
|||
string="${string#?}" |
|||
alphabet="${alphabet/$ch}" |
|||
done |
|||
[[ -z "$alphabet" ]] |
|||
}</lang> |
|||
=={{header|Ursala}}== |
=={{header|Ursala}}== |
||
<lang Ursala> |
<lang Ursala> |