Timeline for How to capitalize the first letter of each word in a string
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 10, 2013 at 19:17 | comment | added | C. E.♦ | @Mr.Wizard Fair enough, I didn't think about it in terms of speed especially with the sample being so tiny. :/ Fixed the problem with the trailing space though. | |
Sep 10, 2013 at 19:15 | history | edited | C. E.♦ | CC BY-SA 3.0 |
added 11 characters in body
|
Sep 10, 2013 at 18:48 | comment | added | Mr.Wizard |
I'm sorry, but I can't endorse this. MapAt has poor algorithmic complexity, so you are shifting an operation out of an optimized domain into a known inefficient one. You have also introduced a bug in the case that there is a trailing space on the string.
|
|
Sep 10, 2013 at 15:54 | history | answered | C. E.♦ | CC BY-SA 3.0 |