Hi everyone,

*Background*
Macro.camelize/1 is convert string to upper camel case (pascal case).
How do I convert lower camel case (camel case with the first letter 
lowercase) 

*Proposal*
@spec camelize(String.t(), boolean()) :: String.t()
  def camelize(string, upper? \\ true)

*Example*
Macro.camelize("foo_bar")
> "FooBar"
Macro.camelize("foo_bar", false)
> "fooBar"
Macro.camelize("d_day", false)
> "dDay"

What is your opinion :)

-- 
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/d476c06c-3c91-44ce-8c73-15f26e97eb07n%40googlegroups.com.

Reply via email to