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

7
LINES

< > BotCompany Repo | #1033172 // countIteratorToObjectArray

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

Libraryless. Click here for Pure Java version (3792L/22K).

static <A> O[] lambdaMapLike countIteratorToObjectArray(IF1<Int, O> f, int a default 0, int b) {
  int n = max(b-a, 0);
  O[] array = new[n];
  for i to n:
    array[i] = f.get(a++);
  ret array;
}

Author comment

Began life as a copy of #1030031

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1033172
Snippet name: countIteratorToObjectArray
Eternal ID of this version: #1033172/4
Text MD5: a210e0dbb981c73afef1b01514ff3c26
Transpilation MD5: 155f7e4bd7fb200bb3f98b6bb8d3bda1
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-16 02:33:33
Source code size: 203 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 142 / 205
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)