Show ASCII table: Difference between revisions
m
→{{header|Ecstasy}}
m (→{{header|K}}: more concise) |
|||
Line 2,189:
=={{header|Ecstasy}}==
<syntaxhighlight lang="java">
module
@Inject Console console;
void run() {
for (Int offset : 0..<16) {
for (Int ascii = 32+offset;
{▼
console.print($|{ascii.toString().rightJustify(3)}/\
|{ascii.toByte().toByteArray()}: \
|{new Char(ascii).quoted().leftJustify(5)}
, suppressNewline=True);
}
}
}
}
</syntaxhighlight>
|