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

3
LINES

< > BotCompany Repo | #1028732 // reverseSet - return LinkedHashSet with elements in reverse order

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

Libraryless. Click here for Pure Java version (2494L/16K).

static <A> Set<A> reverseSet(Set<A> set) {
  ret asLinkedHashSet(reversed(asList(set)));
}

Author comment

Began life as a copy of #1028710

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1028732
Snippet name: reverseSet - return LinkedHashSet with elements in reverse order
Eternal ID of this version: #1028732/2
Text MD5: b38811dd4958763f7a81318c1a89a972
Transpilation MD5: 9e2213176a783d66cd5dc89b84784eeb
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-06 16:32:51
Source code size: 92 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 193 / 295
Version history: 1 change(s)
Referenced in: [show references]