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).

1  
!7
2  
3  
set flag callAll_verbose.
4  
5  
p {
6  
  TripleWeb a = tripleWeb("Java", "bla", "bla");
7  
  L<TripleWeb> l = ll(a, a);
8  
  L<TripleRef<S>> l2 = ai_triplesToTripleRefs_lazyList("Java", l);
9  
  print("l2: " + l(l2));
10  
  Iterator<TripleRef<S>> it = iterator(l2);
11  
  assertTrue(it.hasNext());
12  
  assertEquals("Java", it.next()!);
13  
  assertTrue(it.hasNext());
14  
  assertNull(it.next());
15  
  assertFalse(it.hasNext());
16  
  
17  
  L<S> l3 = callAll(l2);
18  
  print("l3: " + l(l3));
19  
  printStruct(l3);
20  
  
21  
  print("OK");
22  
}

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: 554 / 1227
Version history: 10 change(s)
Referenced in: [show references]