Skip to main content
Commonmark migration
Source Link

Japt, 16 bytes

;C¬£SpY/2 +CsYÃw ·

Try it online!

###Explanation: ;C¬£SpY/2 +CsYÃw · ;C // Alphabet shortcut ¬ // Split into an array of chars £ à // Map each item X and index Y by: SpY/2 // " " repeated floor(Y/2) times +CsY // + alphabet.slice(Y) w // Reverse the array of lines · // Join with newlines

Explanation:

;C¬£SpY/2 +CsYÃw ·
;C                  // Alphabet shortcut
  ¬                 // Split into an array of chars
   £          Ã     // Map each item X and index Y by:
    SpY/2           //  " " repeated floor(Y/2) times
          +CsY      //  + alphabet.slice(Y)
               w    // Reverse the array of lines
                 ·  // Join with newlines

Japt, 16 bytes

;C¬£SpY/2 +CsYÃw ·

Try it online!

###Explanation: ;C¬£SpY/2 +CsYÃw · ;C // Alphabet shortcut ¬ // Split into an array of chars £ à // Map each item X and index Y by: SpY/2 // " " repeated floor(Y/2) times +CsY // + alphabet.slice(Y) w // Reverse the array of lines · // Join with newlines

Japt, 16 bytes

;C¬£SpY/2 +CsYÃw ·

Try it online!

Explanation:

;C¬£SpY/2 +CsYÃw ·
;C                  // Alphabet shortcut
  ¬                 // Split into an array of chars
   £          Ã     // Map each item X and index Y by:
    SpY/2           //  " " repeated floor(Y/2) times
          +CsY      //  + alphabet.slice(Y)
               w    // Reverse the array of lines
                 ·  // Join with newlines
added 43 characters in body
Source Link
ETHproductions
  • 50.1k
  • 6
  • 94
  • 240

Japt, 16 bytes

;C¬£SpY/2 +CsYÃw ·

Try it online!

###Explanation: ;C¬£SpY/2 +CsYÃw · ;C // Alphabet shortcut ¬ // JoinSplit into an array of chars £   à // Map each item X and index Y by: SpY/2 // " " repeated Y floor(index) times Y/2) times +CsY // + Alphabetalphabet.slice(Y) Ãww //Reverse Reverse the array of lines · //Join Join with newlines

Japt, 16 bytes

;C¬£SpY/2 +CsYÃw ·

Try it online!

###Explanation: ;C¬£SpY/2 +CsYÃw · ;C // Alphabet shortcut ¬ // Join into an array £  // Map each item by: SpY/2 // " " repeated Y (index) times /2 +CsY // + Alphabet.slice(Y) Ãw //Reverse · //Join with newlines

Japt, 16 bytes

;C¬£SpY/2 +CsYÃw ·

Try it online!

###Explanation: ;C¬£SpY/2 +CsYÃw · ;C // Alphabet shortcut ¬ // Split into an array of chars £ à // Map each item X and index Y by: SpY/2 // " " repeated floor(Y/2) times +CsY // + alphabet.slice(Y) w // Reverse the array of lines · // Join with newlines

Source Link
Oliver
  • 7.9k
  • 2
  • 18
  • 38

Japt, 16 bytes

;C¬£SpY/2 +CsYÃw ·

Try it online!

###Explanation: ;C¬£SpY/2 +CsYÃw · ;C // Alphabet shortcut ¬ // Join into an array £ // Map each item by: SpY/2 // " " repeated Y (index) times /2 +CsY // + Alphabet.slice(Y) Ãw //Reverse · //Join with newlines