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

12
LINES

< > BotCompany Repo | #1014132 // precedentsMap_receiver

JavaX fragment (include)

static <A> VF1<A> precedentsMap_receiver(final Map<A> map) {
  ret new VF1<A>() {
    A last = null;
    
    void get(A a) {
      if (a == null) ret;
      if (last != null)
        map.put(a, last);
      last = a;
    }
  };
}

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: 301 / 335
Version history: 2 change(s)
Referenced in: [show references]