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

5
LINES

< > BotCompany Repo | #1008781 // mapPutInRange - put into int range of keys

JavaX fragment (include)

static <A> void mapPutInRange(Map<Int, A> map, int start, int end, A value) {
  if (map != null && value != null) 
    for (int i = start; i < end; i++)
      map.put(i, value);
}

Author comment

Began life as a copy of #1007227

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: #1008781
Snippet name: mapPutInRange - put into int range of keys
Eternal ID of this version: #1008781/2
Text MD5: 05685e1e1dbb4004979b0c3e2e88d6e3
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-06-03 17:01:12
Source code size: 183 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 452 / 526
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)