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.

ifndef EnforceFunctionTypes
static HashSet mapToSet(O f, Iterable l) {
  ret mapToHashSet(f, l);
}
endifndef

static <A, B> HashSet<B> lambdaMapLike mapToSet(IF1<A, B> f, Iterable<A> l) {
  ret mapToHashSet(f, l);
}

static <A, B> HashSet<B> mapToSet(IF1<A, B> f, A[] l) {
  ret mapToSet(f, asList(l));
}

static <A, B> HashSet<B> mapToSet(Iterable<A> l, IF1<A, B> f) {
  ret mapToSet(f, l);
}

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