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

9
LINES

< > BotCompany Repo | #1010884 // keysList - keys of map as list

JavaX fragment (include)

1  
static <A, B> L<A> keysList(Map<A, B> map) {
2  
  ret cloneListSynchronizingOn(keys(map), map);
3  
}
4  
5  
ifclass MultiSet
6  
  static <A> L<A> keysList(MultiSet<A> ms) {
7  
    ret ms == null ? null : keysList(ms.map);
8  
  }
9  
endif

Author comment

Began life as a copy of #1004212

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: #1010884
Snippet name: keysList - keys of map as list
Eternal ID of this version: #1010884/4
Text MD5: abe6a5f44db12bd481bad28a0925d826
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-04 14:17:25
Source code size: 221 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 437 / 487
Version history: 3 change(s)
Referenced in: [show references]