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

3
LINES

< > BotCompany Repo | #1019357 // randomKey

JavaX fragment (include)

1  
static <A, B> A randomKey(Map<A, B> map) {
2  
  ret empty(map) ? null : random(keys(map));
3  
}

Author comment

Began life as a copy of #1019356

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1019357
Snippet name: randomKey
Eternal ID of this version: #1019357/1
Text MD5: dab7641cdc447a3c9dccba6ed9904c67
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-04 14:43:11
Source code size: 91 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 317 / 339
Referenced in: [show references]