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


< > BotCompany Repo | #1006256 - joinMap - map, then join strings

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

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

// f must return a string
static S joinMap(O f, Iterable l) {
  ret join(map(f, l));

static S joinMap(Iterable l, O f) {
  ret joinMap(f, l);

static <A> S joinMap(Iterable<A> l, IF1<A, S> f) {
  ret joinMap(f, l);

static <A> S joinMap(IF1<A, S> f, Iterable<A> l) {
  ret join(map(f, l));

static <A, B> S joinMap(S separator, Map<A, B> map, IF2<A, B, S> f) {
  ret join(separator, map(map, f));

Author comment

Began life as a copy of #1005492

download  show line numbers  debug dex   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, xrpafgyirdlv

No comments. add comment

Snippet ID: #1006256
Snippet name: joinMap - map, then join strings
Eternal ID of this version: #1006256/8
Text MD5: f574ce7b3539ef9421bd1d0c9010ff92
Transpilation MD5: 0f45583201fd0ab6be92841dd5a8f548
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-19 14:24:21
Source code size: 426 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 359 / 391
Version history: 7 change(s)
Referenced in: [show references]

Formerly at &