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).

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

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: 194 / 297
Version history: 1 change(s)
Referenced in: [show references]