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

10
LINES

< > BotCompany Repo | #1022269 // makePhraseCache - phrases should be unique

JavaX fragment (include)

1  
static PhraseCache makePhraseCache(Iterable<S> phrases) {
2  
  new PhraseCache cache;
3  
  if (phrases != null) for (S s : phrases)
4  
    cache.add(s);
5  
  ret cache;
6  
}
7  
8  
static PhraseCache makePhraseCache(S... phrases) {
9  
  ret makePhraseCache(asList(phrases));
10  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1022269
Snippet name: makePhraseCache - phrases should be unique
Eternal ID of this version: #1022269/5
Text MD5: 337ea71a5e112daa5cb407802d5630a1
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-13 05:42:50
Source code size: 261 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 169 / 204
Version history: 4 change(s)
Referenced in: [show references]