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

66%
+2 −0
Challenges Merge two strings

Japt -h, 13 12 9 bytes à m+V kbU Try it à m+V kbU :Implicit input of strings U & V à :Combinations of U m :Map +V : Append V k :Filt...

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

Answer
#5: Post edited by user avatar Shaggy‭ · 2021-06-22T11:34:44Z (almost 3 years ago)
  • # [Japt](https://github.com/ETHproductions/japt), <s>13</s> 12 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • cVå+ m+U)æøV
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=Y1blKyBtK1Up5vhW&input=WyJFRkdISSJdCiJBQkNERUYi)
  • Possible 9 that I'm too lazy to properly test on my phone:
  • # [Japt](https://github.com/ETHproductions/japt) [`-h`](https://codegolf.meta.stackexchange.com/a/14339/), 9 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • à m+V kbU
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LWg&code=4CBtK1Yga2JV&input=IkFCQ0RFRiIKIkVGR0hJIg)
  • # [Japt](https://github.com/ETHproductions/japt) [`-h`](https://codegolf.meta.stackexchange.com/a/14339/), <s>13</s> <s>12</s> 9 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • à m+V kbU
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LWg&code=4CBtK1Yga2JV&input=IkFCQ0RFRiIKIkVGR0hJIg)
  • à m+V kbU :Implicit input of strings U & V
  • à :Combinations of U
  • m :Map
  • +V : Append V
  • k :Filter elements that return falsey (i.e., 0)
  • bU : First 0-based index of U
  • :Implicit output of last element
#4: Post edited by user avatar Shaggy‭ · 2021-06-21T20:26:44Z (almost 3 years ago)
  • # [Japt](https://github.com/ETHproductions/japt), <s>13</s> 12 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • cVå+ m+U)æøV
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=Y1blKyBtK1Up5vhW&input=WyJFRkdISSJdCiJBQkNERUYi)
  • Possible 9 that I'm too lazy to properly test right now:
  • # [Japt](https://github.com/ETHproductions/japt) [`-h`](https://codegolf.meta.stackexchange.com/a/14339/), 9 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • à m+V kbU
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LWg&code=4CBtK1Yga2JV&input=IkFCQ0RFRiIKIkVGR0hJIg)
  • Possible 9 that I'm too lazy to properly test on my phone:
  • # [Japt](https://github.com/ETHproductions/japt) [`-h`](https://codegolf.meta.stackexchange.com/a/14339/), 9 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • à m+V)kbU
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LWg&code=4CBtK1Ypa2JV&input=IkFCQ0RFRiIKIkVGR0hJIg)
  • # [Japt](https://github.com/ETHproductions/japt), <s>13</s> 12 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • cVå+ m+U)æøV
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=Y1blKyBtK1Up5vhW&input=WyJFRkdISSJdCiJBQkNERUYi)
  • Possible 9 that I'm too lazy to properly test on my phone:
  • # [Japt](https://github.com/ETHproductions/japt) [`-h`](https://codegolf.meta.stackexchange.com/a/14339/), 9 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • à m+V kbU
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LWg&code=4CBtK1Yga2JV&input=IkFCQ0RFRiIKIkVGR0hJIg)
#3: Post edited by user avatar Shaggy‭ · 2021-06-21T20:25:28Z (almost 3 years ago)
  • # [Japt](https://github.com/ETHproductions/japt), <s>13</s> 12 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • cVå+ m+U)æøV
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=Y1blKyBtK1Up5vhW&input=WyJFRkdISSJdCiJBQkNERUYi)
  • # [Japt](https://github.com/ETHproductions/japt), <s>13</s> 12 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • cVå+ m+U)æøV
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=Y1blKyBtK1Up5vhW&input=WyJFRkdISSJdCiJBQkNERUYi)
  • Possible 9 that I'm too lazy to properly test right now:
  • # [Japt](https://github.com/ETHproductions/japt) [`-h`](https://codegolf.meta.stackexchange.com/a/14339/), 9 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • à m+V kbU
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LWg&code=4CBtK1Yga2JV&input=IkFCQ0RFRiIKIkVGR0hJIg)
  • Possible 9 that I'm too lazy to properly test on my phone:
  • # [Japt](https://github.com/ETHproductions/japt) [`-h`](https://codegolf.meta.stackexchange.com/a/14339/), 9 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • à m+V)kbU
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LWg&code=4CBtK1Ypa2JV&input=IkFCQ0RFRiIKIkVGR0hJIg)
#2: Post edited by user avatar Shaggy‭ · 2021-06-21T17:11:52Z (almost 3 years ago)
  • # [Japt](https://github.com/ETHproductions/japt), 13 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • å+ m+V iV æøU
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=5SsgbStWIGlWIOb4VQ&input=IkFCQ0RFRiIKIkVGR0hJIg)
  • # [Japt](https://github.com/ETHproductions/japt), <s>13</s> 12 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • cVå+ m+U)æøV
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=Y1blKyBtK1Up5vhW&input=WyJFRkdISSJdCiJBQkNERUYi)
#1: Initial revision by user avatar Shaggy‭ · 2021-06-21T16:49:56Z (almost 3 years ago)
# [Japt](https://github.com/ETHproductions/japt), 13 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)

    å+ m+V iV æøU

[Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=5SsgbStWIGlWIOb4VQ&input=IkFCQ0RFRiIKIkVGR0hJIg)