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

22
LINES

< > BotCompany Repo | #1012668 // Test smart lazy list possible problem (repeated triples) [OK]

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

Download Jar. Libraryless. Click here for Pure Java version (2467L/16K).

!7

set flag callAll_verbose.

p {
  TripleWeb a = tripleWeb("Java", "bla", "bla");
  L<TripleWeb> l = ll(a, a);
  L<TripleRef<S>> l2 = ai_triplesToTripleRefs_lazyList("Java", l);
  print("l2: " + l(l2));
  Iterator<TripleRef<S>> it = iterator(l2);
  assertTrue(it.hasNext());
  assertEquals("Java", it.next()!);
  assertTrue(it.hasNext());
  assertNull(it.next());
  assertFalse(it.hasNext());
  
  L<S> l3 = callAll(l2);
  print("l3: " + l(l3));
  printStruct(l3);
  
  print("OK");
}

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: #1012668
Snippet name: Test smart lazy list possible problem (repeated triples) [OK]
Eternal ID of this version: #1012668/11
Text MD5: 08393aabaeee38056533f92d91cea5b4
Transpilation MD5: c38f740962105583c0b69f28200cfb34
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-10 02:17:10
Source code size: 507 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 384 / 875
Version history: 10 change(s)
Referenced in: [show references]