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

16
LINES

< > BotCompany Repo | #1021107 // concatMap_pcall - map_pcall, then concat lists

JavaX fragment (include)

1  
// f must return a list
2  
static L mapLike concatMap_pcall(O f, Iterable l) {
3  
  ret concatLists(map_pcall(f, l));
4  
}
5  
6  
static L concatMap_pcall(Iterable l, O f) {
7  
  ret concatMap_pcall(f, l);
8  
}
9  
10  
static L concatMap_pcall(O f, O[] l) {
11  
  ret concatLists(map_pcall(f, l));
12  
}
13  
14  
static L concatMap_pcall(O[] l, O f) {
15  
  ret concatMap_pcall(f, l);
16  
}

Author comment

Began life as a copy of #1005492

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021107
Snippet name: concatMap_pcall - map_pcall, then concat lists
Eternal ID of this version: #1021107/1
Text MD5: 4a6594cf30ee2d4a6ba3e43d21f304ce
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-22 17:40:02
Source code size: 353 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 200 / 231
Referenced in: [show references]