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

6
LINES

< > BotCompany Repo | #1025992 // allKeysFromList_inOrder

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2210L/14K).

static <A, B> Set<A> allKeysFromList_inOrder(Iterable<Map<A, B>> l) {
  Set<A> set = new LinkedHashSet;
  fOr (Map<A, B> map : l)
    addAll(set, keys(map));
  ret set;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1025992
Snippet name: allKeysFromList_inOrder
Eternal ID of this version: #1025992/1
Text MD5: 7ed6aeffa3f66a63a2d49d3c8f6fd362
Transpilation MD5: 3f7b6f3b198da638021fc7b0e44afef6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-06 12:19:14
Source code size: 175 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 185 / 298
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)