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

8
LINES

< > BotCompany Repo | #1017817 // mapIntoSameCollection - does nothing if exception anywhere

JavaX fragment (include)

1  
svoid mapIntoSameCollection(O f, Collection c) {
2  
  if (c == null) ret;
3  
  replaceCollection(c, map(f, c));
4  
}
5  
6  
svoid mapIntoSameCollection(Collection c, O f) {
7  
  mapIntoSameCollection(f, c);
8  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1017817
Snippet name: mapIntoSameCollection - does nothing if exception anywhere
Eternal ID of this version: #1017817/3
Text MD5: 274cb5bb6c69a0dda70302e2fb55ef31
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-14 21:46:32
Source code size: 197 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 372 / 402
Version history: 2 change(s)
Referenced in: [show references]