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

Version Path
trackler-2.2.1.180 tracks/erlang/exercises/isogram/src/example.erl
trackler-2.2.1.179 tracks/erlang/exercises/isogram/src/example.erl
trackler-2.2.1.178 tracks/erlang/exercises/isogram/src/example.erl
trackler-2.2.1.177 tracks/erlang/exercises/isogram/src/example.erl
trackler-2.2.1.176 tracks/erlang/exercises/isogram/src/example.erl
trackler-2.2.1.175 tracks/erlang/exercises/isogram/src/example.erl
trackler-2.2.1.174 tracks/erlang/exercises/isogram/src/example.erl
trackler-2.2.1.173 tracks/erlang/exercises/isogram/src/example.erl
trackler-2.2.1.172 tracks/erlang/exercises/isogram/src/example.erl
trackler-2.2.1.171 tracks/erlang/exercises/isogram/src/example.erl
trackler-2.2.1.170 tracks/erlang/exercises/isogram/src/example.erl
trackler-2.2.1.169 tracks/erlang/exercises/isogram/src/example.erl
trackler-2.2.1.167 tracks/erlang/exercises/isogram/src/example.erl
trackler-2.2.1.166 tracks/erlang/exercises/isogram/src/example.erl
trackler-2.2.1.165 tracks/erlang/exercises/isogram/src/example.erl
trackler-2.2.1.164 tracks/erlang/exercises/isogram/src/example.erl
trackler-2.2.1.163 tracks/erlang/exercises/isogram/src/example.erl
trackler-2.2.1.162 tracks/erlang/exercises/isogram/src/example.erl
trackler-2.2.1.161 tracks/erlang/exercises/isogram/src/example.erl
trackler-2.2.1.160 tracks/erlang/exercises/isogram/src/example.erl