<br><br><div class="gmail_quote">On Fri, Nov 7, 2008 at 3:22 PM, mats cronqvist <span dir="ltr"><<a href="mailto:masse@kreditor.se">masse@kreditor.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">"Robert Virding" <<a href="mailto:rvirding@gmail.com">rvirding@gmail.com</a>> writes:<br>
<br>
> A reasonable way of doing it would be:<br>
><br>
> case is_vowel(Char) of<br>
> true -> ... ;<br>
> false -> ...<br>
> end<br>
<br>
<br>
</div>is_wovel(C) -> lists:member(C,"aeiouy").</blockquote><div><br>It is slower than Robert's solution. If performance is significant lists:member solution is worse.<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<font color="#888888"><br>
mats<br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>--Hynek (Pichi) Vychodil<br>