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

12
LINES

< > BotCompany Repo | #1024084 // map_multi - call multiple functions on a list

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

Libraryless. Click here for Pure Java version (1706L/11K).

1  
// functions: L<F1>
2  
// functions are columns, elements are rows
3  
static L<L> map_multi(Collection functions, Iterable c) {
4  
  new L<L> out;
5  
  fOr (O a : c) {
6  
    new L row;
7  
    fOr (O f : functions)
8  
      row.add(callF(f, a));
9  
    out.add(row);
10  
  }
11  
  ret out;
12  
}

Author comment

Began life as a copy of #1014133

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1024084
Snippet name: map_multi - call multiple functions on a list
Eternal ID of this version: #1024084/4
Text MD5: 3814086639a48c4af85317d2d8dee59f
Transpilation MD5: 0868993d0676dc2b3c3d51becc793301
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-20 14:54:02
Source code size: 270 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 110 / 184
Version history: 3 change(s)
Referenced in: [show references]