Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

71%
+3 −0
Challenges Word Set Square

Japt -R, 16 15 14 bytes pÔ¬Ëú°EDùEÃÆpÔ Try it pÔ¬Ëú°EDùEÃÆpÔ :Implicit input of string p :Append Ô : Reverse ¬ :Split Ë ...

posted 3y ago by Shaggy‭  ·  edited 2y ago by Shaggy‭

Answer
#6: Post edited by user avatar Shaggy‭ · 2022-10-11T22:35:00Z (about 2 years ago)
  • # [Japt](https://github.com/ETHproductions/japt) [`-R`](https://codegolf.meta.stackexchange.com/a/14339/), <s>16</s> <s>15</s> 14 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • pÔ¬Ëú°EDùEÃÆpÔ
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LVI&code=cNSsy/qwRUT5RcPGcNQ&input=IkhlbGxvIg)
  • pÔ¬Ëú°EDùEÃÆpÔ :Implicit input of string
  • p :Append
  • Ô : Reverse
  • ¬ :Split
  • Ë :Map each D at 0-based index E
  • ú : Left pad
  • °E : to length E, prefix incremented
  • DùE : with D, right padded to length E
  • Ã :End map
  • Æ :Modify the last element, replacing it with
  • p : Append to input
  • Ô : Reverse
  • :Implicit output joined with newlines
  • # [Japt](https://github.com/ETHproductions/japt) [`-R`](https://codegolf.meta.stackexchange.com/a/14339/), <s>16</s> <s>15</s> 14 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • pÔ¬Ëú°EDùEÃÆpÔ
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LVI&code=cNSsy/qwRUT5RcPGcNQ&input=IkhlbGxvIg)
  • pÔ¬Ëú°EDùEÃÆpÔ :Implicit input of string
  • p :Append
  • Ô : Reverse
  • ¬ :Split
  • Ë :Map each D at 0-based index E
  • ú : Right pad
  • °E : to length E, prefix incremented
  • DùE : with D, left padded to length E
  • Ã :End map
  • Æ :Modify the last element, replacing it with
  • p : Append to input
  • Ô : Reverse
  • :Implicit output joined with newlines
#5: Post edited by user avatar Shaggy‭ · 2022-10-07T15:54:37Z (about 2 years ago)
  • # [Japt](https://github.com/ETHproductions/japt) [`-R`](https://codegolf.meta.stackexchange.com/a/14339/), <s>16</s> 15 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • ê1
  • ¬ËúEÄ hJDÃÆU
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LVI&code=6jEKrMv6RcQgaEpEw8ZV&input=IkhlbGxvIg)
  • ê1\n¬ËúEÄ hJDÃÆU :Implicit input of string U
  • ê1 :Mirror
  • \n :Reassign to variable U
  • ¬ :Split
  • Ë :Map each D at 0-based index E
  • ú : Left pad with spaces to length
  • : E+1
  • h : Replace the character at index ...
  • J : -1 (i.e., the last) with ...
  • D : D
  • Ã :End map
  • ÆU :Modify the last element and return U
  • :Implicit output joined with newlines
  • # [Japt](https://github.com/ETHproductions/japt) [`-R`](https://codegolf.meta.stackexchange.com/a/14339/), <s>16</s> <s>15</s> 14 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • pÔ¬Ëú°EDùEÃÆpÔ
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LVI&code=cNSsy/qwRUT5RcPGcNQ&input=IkhlbGxvIg)
  • pÔ¬Ëú°EDùEÃÆpÔ :Implicit input of string
  • p :Append
  • Ô : Reverse
  • ¬ :Split
  • Ë :Map each D at 0-based index E
  • ú : Left pad
  • °E : to length E, prefix incremented
  • DùE : with D, right padded to length E
  • Ã :End map
  • Æ :Modify the last element, replacing it with
  • p : Append to input
  • Ô : Reverse
  • :Implicit output joined with newlines
#4: Post edited by user avatar Shaggy‭ · 2021-07-02T15:51:50Z (over 3 years ago)
  • # [Japt](https://github.com/ETHproductions/japt) [`-R`](https://codegolf.meta.stackexchange.com/a/14339/), <s>16</s> 15 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • ê1
  • ¬ËúEÄ hJDÃÆU
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LVI&code=6jEKrMv6RcQgaEpEw8ZV&input=IkhlbGxvIg)
  • # [Japt](https://github.com/ETHproductions/japt) [`-R`](https://codegolf.meta.stackexchange.com/a/14339/), <s>16</s> 15 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • ê1
  • ¬ËúEÄ hJDÃÆU
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LVI&code=6jEKrMv6RcQgaEpEw8ZV&input=IkhlbGxvIg)
  • ê1\n¬ËúEÄ hJDÃÆU :Implicit input of string U
  • ê1 :Mirror
  • \n :Reassign to variable U
  • ¬ :Split
  • Ë :Map each D at 0-based index E
  • ú : Left pad with spaces to length
  • EÄ : E+1
  • h : Replace the character at index ...
  • J : -1 (i.e., the last) with ...
  • D : D
  • Ã :End map
  • ÆU :Modify the last element and return U
  • :Implicit output joined with newlines
#3: Post edited by user avatar Shaggy‭ · 2021-06-22T10:54:16Z (over 3 years ago)
  • # [Japt](https://github.com/ETHproductions/japt) [`-R`](https://codegolf.meta.stackexchange.com/a/14339/), <s>15</s> 14 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • ê
  • ¬ËúEÄ hJDÃÆU
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LVI&code=6gqsy/pFxCBoSkTDxlU&input=IkhlbGxvIg)
  • # [Japt](https://github.com/ETHproductions/japt) [`-R`](https://codegolf.meta.stackexchange.com/a/14339/), <s>16</s> 15 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • ê1
  • ¬ËúEÄ hJDÃÆU
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LVI&code=6jEKrMv6RcQgaEpEw8ZV&input=IkhlbGxvIg)
#2: Post edited by user avatar Shaggy‭ · 2021-06-22T09:52:38Z (over 3 years ago)
  • # [Japt](https://github.com/ETHproductions/japt) [`-R`](https://codegolf.meta.stackexchange.com/a/14339/), 15 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • ê
  • ¬ËpEg)iDúEÃÆU
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LVI&code=6gqsy3BFZylpRPpFw8ZV&input=IkhlbGxvIg)
  • # [Japt](https://github.com/ETHproductions/japt) [`-R`](https://codegolf.meta.stackexchange.com/a/14339/), <s>15</s> 14 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • ê
  • ¬ËúEÄ hJDÃÆU
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LVI&code=6gqsy/pFxCBoSkTDxlU&input=IkhlbGxvIg)
#1: Initial revision by user avatar Shaggy‭ · 2021-06-22T09:50:35Z (over 3 years ago)
# [Japt](https://github.com/ETHproductions/japt) [`-R`](https://codegolf.meta.stackexchange.com/a/14339/), 15 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)

    ê
    ¬ËpEg)iDúEÃÆU

[Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LVI&code=6gqsy3BFZylpRPpFw8ZV&input=IkhlbGxvIg)