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

14
LINES

< > BotCompany Repo | #1011023 // randomGuesser1

JavaX fragment (include)

1  
sclass RandomGuesser1 extends F1<S, S> {
2  
  L<S> elements;
3  
  
4  
  *() {}
5  
  *(L<S> *elements) {}
6  
  
7  
  S get(S s) {
8  
    ret random(elements);
9  
  }
10  
}
11  
12  
static RandomGuesser1 randomGuesser1(SS examples) {
13  
  ret RandomGuesser1(valuesList(examples));
14  
}

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: #1011023
Snippet name: randomGuesser1
Eternal ID of this version: #1011023/2
Text MD5: 70be349594e9893bfd0c551109ec03dc
Author: stefan
Category: javax / guessers
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-11 19:29:23
Source code size: 254 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 301 / 353
Version history: 1 change(s)
Referenced in: [show references]