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

9
LINES

< > BotCompany Repo | #1016765 // mapFromFirstAndThirdWord

JavaX fragment (include)

1  
static SS mapFromFirstAndThirdWord(Iterable<S> l) {
2  
  SS map = new LinkedHashMap;
3  
  for (S s : l) {
4  
    L<S> words = words(s);
5  
    if (l(words) >= 3)
6  
      map.put(first(words), third(words));
7  
  }
8  
  ret map;
9  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016765
Snippet name: mapFromFirstAndThirdWord
Eternal ID of this version: #1016765/1
Text MD5: 4e46abf7aa91cd70a1423356eb4e179b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-02 12:11:51
Source code size: 217 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 418 / 444
Referenced in: [show references]