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

5
LINES

< > BotCompany Repo | #1023796 // outerProduct_arrays - receives an array of Iterables and returns object arrays

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

Libraryless. Click here for Pure Java version (2059L/13K).

1  
static <A, B extends Iterable<A>> ItIt<O[]> outerProduct_arrays(B[] lists) {
2  
  int n = l(lists);
3  
  if (n == 0) ret emptyIterableIterator();
4  
  ret mapI(sll -> simplyLinkedListToObjectArray(n, sll), outerProduct_faster(arrayToSimplyLinkedList(lists)));
5  
}

Author comment

Began life as a copy of #1023792

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: #1023796
Snippet name: outerProduct_arrays - receives an array of Iterables and returns object arrays
Eternal ID of this version: #1023796/11
Text MD5: 34b647931bcd1b05dba3e3e4771fb0c7
Transpilation MD5: f5b424adb5501f0b21867025c1f4f404
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-09 03:50:03
Source code size: 256 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 196 / 287
Version history: 10 change(s)
Referenced in: [show references]