Skip to main content
3 of 5
deleted 365 characters in body

Haskell, 153 bytes

f
 [
 ]=
   [
   ];
    f(
     x:
      l)
       =(
        :)
         x$
          f l
--r    z
--e    i
--p    p
--e    W
--a    i
--t    t
--     h

Try it online!

Try it transposed!