Write language name in 3D ASCII: Difference between revisions

m
Line 2,100:
 
const nim = """
# # ##### # # #### #### ####
## # # ## ## # # # # # #
# # # # # ## # # # # # # #
# # # # # # #### # # # #
# ## # # # # # # # # #
# # ##### # # # # #### ####"""
 
let lines = nim.replace("#", "<<<").replace(" ", "X").replace("X", " ").replace("\n", " Y").replace("< ", "<>").split('Y')
Line 2,111:
echo repeatChar((lines.len - i) * 3), l</lang>
{{out}}
<pre> <<<> <<<> <<<<<<<<<<<<<<<> <<<> <<<> <<<<<<<<<<<<> <<<<<<<<<<<<> <<<<<<<<<<<<>
<<<<<<> <<<> <<<> <<<<<<> <<<<<<> <<<> <<<> <<<> <<<> <<<> <<<>
<<<> <<<> <<<> <<<> <<<> <<<<<<> <<<> <<<> <<<> <<<> <<<> <<<> <<<>
<<<> <<<> <<<> <<<> <<<> <<<> <<<<<<<<<<<<> <<<> <<<> <<<> <<<>
<<<> <<<<<<> <<<> <<<> <<<> <<<> <<<> <<<> <<<> <<<> <<<>
<<<> <<<> <<<<<<<<<<<<<<<> <<<> <<<> <<<> <<<> <<<<<<<<<<<<> <<<<<<<<<<<<</pre>
 
=={{header|OCaml}}==
Anonymous user