static S camelCase(L<S> words) { new StringBuilder buf; for i over words: { S word = words.get(i); word = toLower(word); buf.append(i == 0 ? word : firstToUpper(word)); } ret str(buf); } static S camelCase(S words) { ret camelCase(words(words)); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005764 |
Snippet name: | camelCase - convert word list into "camel case" |
Eternal ID of this version: | #1005764/2 |
Text MD5: | d62650616d846f100af21504c074dd89 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-24 16:17:11 |
Source code size: | 282 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 552 / 566 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1013444 - wordsToCamelCase - synonym of camelCase - convert word list into "camel case" #1014831 - toCamelCase - synonym of camelCase - convert word list into "camel case" |