Libraryless. Click here for Pure Java version (9261L/51K).
abstract sclass Convergent<A> extends ItIt<A> { A value; bool stepped, done; public bool hasNext() { if (done) false; if (!stepped) { stepped = true; step(); } ret !done; } public A next() { assertTrue(hasNext()); stepped = false; ret value; } abstract void step(); }
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1036153 |
Snippet name: | Convergent - Converging value calculation |
Eternal ID of this version: | #1036153/1 |
Text MD5: | d1238c13863acfbeb23bde03e0da6d39 |
Transpilation MD5: | c5c83e9506659c6ed886cd5776427215 |
Author: | stefan |
Category: | javax / maths |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-10-01 06:22:14 |
Source code size: | 362 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 115 / 174 |
Referenced in: | #1003674 - Standard Classes + Interfaces (LIVE continued in #1034167) |