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


< > BotCompany Repo | #1030554 - mapToDoubleArray

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

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

static <A> double[] mapToDoubleArray(Cl<A> l, IF1<A, Double> f) {
  int n = l(l);
  double[] a = new[n];
  Iterator<A> it = iterator(l);
  for i to n:
    a[i] = f.get(;
  ret a;

Author comment

Began life as a copy of #1015540

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1030554
Snippet name: mapToDoubleArray
Eternal ID of this version: #1030554/3
Text MD5: 528f4c80c2d9150cb36c391986d5c349
Transpilation MD5: 36f965bc57e623b0d680846ac72f3fd8
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-01-07 17:54:26
Source code size: 197 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 25 / 37
Version history: 2 change(s)
Referenced in: [show references]

Formerly at &