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

21
LINES

< > BotCompany Repo | #1034242 // toSet - synonym of asSet

JavaX fragment (include)

1  
static Set toSet(O[] array) {
2  
  ret asSet(array);
3  
}
4  
5  
6  
7  
static Set<S> toSet(S[] array) {
8  
  ret asSet(array);
9  
}
10  
11  
12  
13  
static <A> Set<A> toSet(Iterable<A> l) {
14  
  ret asSet(l);
15  
}
16  
17  
18  
// Note: does not clone the set (keeps multiset alive)
19  
static <A> Set<A> toSet(MultiSet<A> ms) {
20  
  ret asSet(ms);
21  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034242
Snippet name: toSet - synonym of asSet
Eternal ID of this version: #1034242/1
Text MD5: 9dac332bcb3265164c7db4f62d5df0ab
Author: someone
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-29 09:37:36
Source code size: 295 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 94 / 117
Referenced in: [show references]