Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

17
LINES

< > BotCompany Repo | #1001896 // toLowerCase

JavaX fragment (include)

1  
static L<S> toLowerCase(L<S> strings) {
2  
  new L<S> x;
3  
  for (S s : strings)
4  
    x.add(s.toLowerCase());
5  
  ret x;
6  
}
7  
8  
static S[] toLowerCase(S[] strings) {
9  
  S[] x = new S[l(strings)];
10  
  for (int i = 0; i < l(strings); i++)
11  
    x[i] = strings[i].toLowerCase();
12  
  ret x;
13  
}
14  
15  
static S toLowerCase(S s) {
16  
  ret s == null ? "" : s.toLowerCase();
17  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1001896
Snippet name: toLowerCase
Eternal ID of this version: #1001896/1
Text MD5: c123a05696d01de5c297acc3265ee835
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-04-05 17:45:01
Source code size: 356 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 681 / 1805
Referenced in: [show references]