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

17
LINES

< > BotCompany Repo | #1025920 // mapToSet - synonym of mapToHashSet

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

Transpiled version (5088L) is out of date.

1  
ifndef EnforceFunctionTypes
2  
static HashSet mapToSet(O f, Iterable l) {
3  
  ret mapToHashSet(f, l);
4  
}
5  
endifndef
6  
7  
static <A, B> HashSet<B> lambdaMapLike mapToSet(IF1<A, B> f, Iterable<A> l) {
8  
  ret mapToHashSet(f, l);
9  
}
10  
11  
static <A, B> HashSet<B> mapToSet(IF1<A, B> f, A[] l) {
12  
  ret mapToSet(f, asList(l));
13  
}
14  
15  
static <A, B> HashSet<B> mapToSet(Iterable<A> l, IF1<A, B> f) {
16  
  ret mapToSet(f, l);
17  
}

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: #1025920
Snippet name: mapToSet - synonym of mapToHashSet
Eternal ID of this version: #1025920/8
Text MD5: 02d39afe751431026e74a7de7ae79d42
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-12 23:04:09
Source code size: 409 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 275 / 406
Version history: 7 change(s)
Referenced in: [show references]