Post History
Vyxal J, 12 bytes ḣmėƛ÷꘍ṘǏ;⁋?m Try it Online! ḣ # Head extract (x[0], x[1:] ) m # Mirror the ToS (x[1:]) ė # Zip with 0...length ƛ ; # Map... ...
Answer
#1: Initial revision
# [Vyxal](https://github.com/Vyxal/Vyxal) `J`, 12 bytes ``` ḣmėƛ÷꘍ṘǏ;⁋?m ``` [Try it Online!](https://lyxal.pythonanywhere.com?flags=J&code=%E1%B8%A3m%C4%97%C6%9B%C3%B7%EA%98%8D%E1%B9%98%C7%8F%3B%E2%81%8B%3Fm&inputs=Hello&header=&footer=) ``` ḣ # Head extract (x[0], x[1:] ) m # Mirror the ToS (x[1:]) ė # Zip with 0...length ƛ ; # Map... ÷꘍ # Pad by spaces to correct amount ṘǏ # Append the first character to the end ⁋ # Join by newlines ?m # Input mirrored # (J flag) Output stack joined by newlines ```