Sha256: 6d84d98c31761a0be70d5fa561f6c7f70667afd30b017744dd3c0537008ec5ff
Contents?: true
Size: 357 Bytes
Versions: 122
Compression:
Stored size: 357 Bytes
Contents
-module(example). -export([is_isogram/1, test_version/0]). is_isogram(String) -> check_isogram([C || C <- string:to_lower(String), ($a =< C), (C =< $z)]). check_isogram("") -> true; check_isogram([H|T]) -> is_not_found_in(H, T) andalso check_isogram(T). is_not_found_in(C, S) -> lists:all(fun(X) -> X /= C end, S). test_version() -> 1.
Version data entries
122 entries across 122 versions & 1 rubygems