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

6
LINES

< > BotCompany Repo | #1024247 // ai_pairsThatAreIdenticalWhenJoinedWithSpace (case-insensitive)

JavaX fragment (include)

static MultiMap<S, PairS> ai_pairsThatAreIdenticalWhenJoinedWithSpace(Collection<PairS> l) {
  MultiMap<S, PairS> mm = ciMultiMap();
  fOr (PairS p : l)
    mm.put(p.a + " " + p.b, p);
  ret keysWithMultipleValuesOnly(mm);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1024247
Snippet name: ai_pairsThatAreIdenticalWhenJoinedWithSpace (case-insensitive)
Eternal ID of this version: #1024247/1
Text MD5: f6eefd3019e7785846d519f27be6954b
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-28 17:41:27
Source code size: 229 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 189 / 236
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)