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

12
LINES

< > BotCompany Repo | #1014127 // consequentsMap_receiver

JavaX fragment (include)

1  
static <A> VF1<A> consequentsMap_receiver(final Map<A> map) {
2  
  ret new VF1<A>() {
3  
    A last = null;
4  
    
5  
    void get(A a) {
6  
      if (a == null) ret;
7  
      if (last != null)
8  
        map.put(last, a);
9  
      last = a;
10  
    }
11  
  };
12  
}

Author comment

Began life as a copy of #1014123

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1014127
Snippet name: consequentsMap_receiver
Eternal ID of this version: #1014127/3
Text MD5: c264da8ca30470ce1b389c5d05b0294c
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-11 04:43:12
Source code size: 244 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 367 / 400
Version history: 2 change(s)
Referenced in: [show references]