Generator/Exponential: Difference between revisions

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