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)

static PhraseCache makePhraseCache(Iterable<S> phrases) {
  new PhraseCache cache;
  if (phrases != null) for (S s : phrases)
    cache.add(s);
  ret cache;
}

static PhraseCache makePhraseCache(S... phrases) {
  ret makePhraseCache(asList(phrases));
}

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: 161 / 195
Version history: 4 change(s)
Referenced in: [show references]