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

12
LINES

< > BotCompany Repo | #1014127 // consequentsMap_receiver

JavaX fragment (include)

static <A> VF1<A> consequentsMap_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(last, a);
      last = a;
    }
  };
}

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: 368 / 401
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1014132 - precedentsMap_receiver