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

10
LINES

< > BotCompany Repo | #1022308 // makeFullPhraseCache - phrases should be unique

JavaX fragment (include)

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

Author comment

Began life as a copy of #1022269

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: #1022308
Snippet name: makeFullPhraseCache - phrases should be unique
Eternal ID of this version: #1022308/3
Text MD5: 466fcbfb7745c1f31e5ca2052b43941d
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:22
Source code size: 285 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 320 / 331
Version history: 2 change(s)
Referenced in: [show references]