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

12
LINES

< > BotCompany Repo | #1014132 // precedentsMap_receiver

JavaX fragment (include)

1  
static <A> VF1<A> precedentsMap_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(a, last);
9  
      last = a;
10  
    }
11  
  };
12  
}

Author comment

Began life as a copy of #1014127

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: #1014132
Snippet name: precedentsMap_receiver
Eternal ID of this version: #1014132/3
Text MD5: f7d7f475977b87b2828db302f326eba8
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 05:07:11
Source code size: 243 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 306 / 340
Version history: 2 change(s)
Referenced in: [show references]