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

9
LINES

< > BotCompany Repo | #1022134 // keysAndValues - as interleaving list, no uniquifying

JavaX fragment (include)

static <A> L<A> keysAndValues(Map<A> map) {
  new L<A> l;
  if (map != null)
    for (Map.Entry<A> e : map.entrySet()) {
      l.add(e.getKey());
      l.add(e.getValue());
    }
  ret l;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1022134
Snippet name: keysAndValues - as interleaving list, no uniquifying
Eternal ID of this version: #1022134/3
Text MD5: b6180af821356e042c885956a539959e
Author: stefan
Category: javax / gazelle
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-08 11:40:22
Source code size: 197 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 309 / 330
Version history: 2 change(s)
Referenced in: [show references]