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).

// functions: L<F1>
// functions are columns, elements are rows
static L<L> map_multi(Collection functions, Iterable c) {
  new L<L> out;
  fOr (O a : c) {
    new L row;
    fOr (O f : functions)
      row.add(callF(f, a));
    out.add(row);
  }
  ret out;
}

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