Write language name in 3D ASCII: Difference between revisions
Content added Content deleted
(Adds Clojure solution) |
(Add Nimrod) |
||
Line 1,294: | Line 1,294: | ||
\\\/ \\\/ \\\\\\\\\/ \\\\\\/ \\\/ \\\/ \\\\\\\\\/ \\\/ \\\/ \\\/ \\\/ |
\\\/ \\\/ \\\\\\\\\/ \\\\\\/ \\\/ \\\/ \\\\\\\\\/ \\\/ \\\/ \\\/ \\\/ |
||
</pre> |
</pre> |
||
=={{header|Nimrod}}== |
|||
{{trans|Python}} |
|||
<lang nimrod>import strutils |
|||
const nimrod = """ |
|||
# # ##### # # #### #### #### |
|||
## # # ## ## # # # # # # |
|||
# # # # # ## # # # # # # # |
|||
# # # # # # #### # # # # |
|||
# ## # # # # # # # # # |
|||
# # ##### # # # # #### ####""" |
|||
let lines = nimrod.replace("#", "<<<").replace(" ", "X").replace("X", " ").replace("\n", " Y").replace("< ", "<>").split('Y') |
|||
for i, l in lines: |
|||
echo repeatChar((lines.len - i) * 3), l</lang> |
|||
Output: |
|||
<pre> <<<> <<<> <<<<<<<<<<<<<<<> <<<> <<<> <<<<<<<<<<<<> <<<<<<<<<<<<> <<<<<<<<<<<<> |
|||
<<<<<<> <<<> <<<> <<<<<<> <<<<<<> <<<> <<<> <<<> <<<> <<<> <<<> |
|||
<<<> <<<> <<<> <<<> <<<> <<<<<<> <<<> <<<> <<<> <<<> <<<> <<<> <<<> |
|||
<<<> <<<> <<<> <<<> <<<> <<<> <<<<<<<<<<<<> <<<> <<<> <<<> <<<> |
|||
<<<> <<<<<<> <<<> <<<> <<<> <<<> <<<> <<<> <<<> <<<> <<<> |
|||
<<<> <<<> <<<<<<<<<<<<<<<> <<<> <<<> <<<> <<<> <<<<<<<<<<<<> <<<<<<<<<<<<</pre> |
|||
=={{header|Perl 6}}== |
=={{header|Perl 6}}== |