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

15
LINES

< > BotCompany Repo | #1032334 // randomChoice - synonym of oneOf

JavaX fragment (include)

1  
static <A> A randomChoice(L<A> l) {
2  
  ret oneOf(l);
3  
}
4  
5  
6  
7  
static char randomChoice(S s) {
8  
  ret oneOf(s);
9  
}
10  
11  
12  
13  
static S randomChoice(S... l) {
14  
  ret oneOf(l);
15  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032334
Snippet name: randomChoice - synonym of oneOf
Eternal ID of this version: #1032334/1
Text MD5: 6e832cbfb870a22c1666753f222476d8
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-27 08:57:50
Source code size: 163 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 136 / 157
Referenced in: [show references]