On Sat, 13 Mar 2021 04:26:41 -0800 (PST) Igor Silva <[email protected]> wrote:
> Current behavior > > case ?a do > x when x in ?a..?z -> # code > x when x in ?A..?Z -> # code > _ -> # code > end > > Desired behavior > > case ?a do > ?a..?z -> # code > ?A..?Z -> # code > _ -> # code > end > > #GoiásouVilaNova > You can covert the case case ?a do x when x in ?a..?z -> :lower_case x when x in ?A..?Z -> :upper_case _ -> :unknown end into a cond: cond do ?a in ?a..?z -> :lower_case ?a in ?A..?Z -> :upper_case true -> :unknown end -- You received this message because you are subscribed to the Google Groups "elixir-lang-core" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/604cb7a8.1c69fb81.18d14.77cdSMTPIN_ADDED_MISSING%40gmr-mx.google.com.
