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

4
LINES

< > BotCompany Repo | #1034788 // listToSquareishChunks

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

Libraryless. Click here for Pure Java version (5264L/29K).

static <A> LL<A> listToSquareishChunks(L<A> l) {
  int chunkSize = max(1, iround(sqrt(l(l))));
  ret listToChunks(l, chunkSize);
}

Author comment

Began life as a copy of #1020680

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1034788
Snippet name: listToSquareishChunks
Eternal ID of this version: #1034788/2
Text MD5: 97e194febc4e43e026934ba649a64472
Transpilation MD5: 198f6fdb3856b31e114f928e2403418a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-08 11:09:28
Source code size: 133 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 94 / 133
Version history: 1 change(s)
Referenced in: [show references]