[erlang-questions] Idiom for multiple case matches

mats cronqvist <>
Fri Nov 7 15:22:47 CET 2008


"Robert Virding" <> writes:

> A reasonable way of doing it would be:
>
> case is_vowel(Char) of
>     true -> ... ;
>     false -> ...
> end


is_wovel(C) -> lists:member(C,"aeiouy").

  mats



More information about the erlang-questions mailing list