Generator/Exponential: Difference between revisions

Content added Content deleted
m ({{omit from|Lilypond}})
(Updated first D entry)
Line 833: Line 833:
struct Count(T) {
struct Count(T) {
T n;
T n;
this(T n_) { this.n = n_; }
const bool empty = false;
const bool empty = false;
@property T front() { return n; }
@property T front() { return n; }
Line 852: Line 851:
{{out}}
{{out}}
<pre>[529, 576, 625, 676, 784, 841, 900, 961, 1024, 1089]</pre>
<pre>[529, 576, 625, 676, 784, 841, 900, 961, 1024, 1089]</pre>

===Closures-Based Version===
===Closures-Based Version===
{{trans|Go}}
{{trans|Go}}