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

15
LINES

< > BotCompany Repo | #1013603 // Test splitIterator (OK!)

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (3635L/23K).

!7

p {
  L<S> l;
  Iterator<S> itInput = iterator(l = repF(5, f aGlobalID));
  L<IterableIterator<S>> splitIt = splitIterator(2, itInput);
  
  L<S> l1, l2;
  pnlStruct(l1 = iteratorToList(first(splitIt)));
  pnlStruct(l2 = iteratorToList(second(splitIt)));
  
  assertEquals(l, l1);
  assertEquals(l, l2);
  print("OK");
}

Author comment

Began life as a copy of #1013601

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

-
Snippet ID: #1013603
Snippet name: Test splitIterator (OK!)
Eternal ID of this version: #1013603/7
Text MD5: 54025dc84d321017d5d9326b4e891108
Transpilation MD5: b6808b205366183bf490de96e094d73c
Author: stefan
Category: javax
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-11 13:52:45
Source code size: 338 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 494 / 1126
Version history: 6 change(s)
Referenced in: