99 bottles of beer: Difference between revisions

Content added Content deleted
Line 3,961: Line 3,961:


=={{header|Elena}}==
=={{header|Elena}}==
ELENA 5.0 :
ELENA 6.0 :
<syntaxhighlight lang="elena">import system'routines;
<syntaxhighlight lang="elena">import system'routines;
import extensions;
import extensions;
Line 3,978: Line 3,978:
bool next() = n > 0;
bool next() = n > 0;
get() = new StringWriter()
get Value() = new StringWriter()
.printLine(n.bottleDescription()," of beer on the wall")
.printLine(n.bottleDescription()," of beer on the wall")
.printLine(n.bottleDescription()," of beer")
.printLine(n.bottleDescription()," of beer")
Line 3,986: Line 3,986:
reset() {}
reset() {}
enumerable() = __target;
enumerable() = weak self;
}
}
};
};