Anonymous user
99 bottles of beer: Difference between revisions
m
→{{header|Elena}}
(submitted debug version with only 2 bottles) |
|||
Line 2,573:
=={{header|Elena}}==
ELENA
<lang elena>import system'routines
import extensions
import extensions'routines
import extensions'text
extension bottleOp
{
bottleDescription()
= self
bottleEnumerator() =
^ new Enumerator
{
bool next() = n > 0
get() =
.printLine(n
.printLine(n
.printLine("Take one down, pass it around")
.printLine((n
reset()
enumerable() =
}
}
public program()
{
var bottles := 99
bottles
{{out}}
<pre>
|