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

6
LINES

< > BotCompany Repo | #1004366 // trimValues - trim() values of a map

JavaX fragment (include)

1  
static <A> Map<A, S> trimValues(Map<A, S> map) {
2  
  Map map2 = similarEmptyMap(map);
3  
  for (A key : keys(map))
4  
    map2.put(key, trim(map.get(key)));
5  
  ret map2;
6  
}

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: #1004366
Snippet name: trimValues - trim() values of a map
Eternal ID of this version: #1004366/1
Text MD5: 12007642b419e27b3cc9fa423aad1510
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-14 15:43:37
Source code size: 167 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 566 / 591
Referenced in: [show references]