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

60%
+1 −0
Challenges 99 Shortened Bottles of Beer

Japt, 117 116 115 bytes Needs more golfing or, perhaps, a completely different approach. Borrows a couple of tricks trick from ETHProductions' original version. Includes 2 trailing newlines. ´LÇ...

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

Answer
#8: Post edited by user avatar Shaggy‭ · 2021-09-10T15:54:51Z (over 2 years ago)
  • # [Japt](https://github.com/ETHproductions/japt), <s>117</s> <s>116</s> 115 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Needs more golfing or, perhaps, a completely different approach. Borrows a <s>couple of tricks</s> trick from [ETHProductions' original version](https://codegolf.stackexchange.com/a/65865/58974).
  • Includes 2 trailing newlines.
  • ´LÆ".
  • {=`  e Ø!`iP=L+` Þ­¤{´LÎçs}  Þ8`}, {P}.
  • {LÎg`Go ‘ e ÐJe „d ¿y Ñ Ú
  • Take e ܵ „d p†s Š ÂИ`·}, "iUìé~H
  • [Test it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=tEzGIi4KCns9YCCNIJBlINghYGlQPUwrYCDeraR7tEzO53N9II8g3jhgfSwge1B9Lgp7TM5nYEdvIJEgkGUg0EplIIRkIL95INEgINqQClRha2UgjWUg3LUghGQgcIZzIIogwtCYYLd9LCAiaVXDrOl%2bSA)
  • ´LÇ=L+`...{´LÎçs}...`"...{=Z+`...`}...{Z}...{LÎg`...`·}..."iUìé~H
  • ´L :Prefix decrement L (initially 100)
  • Ç :Map each Z in the range [0,L)
  • = : Reassign to Z
  • L+ : L concatenated with
  • ` : Compressed string
  • ... : " bottle"
  • { : Interpolate
  • ´LÎ : Prefix decrement L and get its sign
  • çs : Repeat "s" that many times
  • } : End interpolate
  • ... : " of beer"
  • ` : End compressed string
  • "... : Literal string (the return value)
  • { : Interpolate
  • = : Assign to variable U
  • X+`...` : X & the compressed string " on the wall"
  • } : End interpolate
  • ... : Literals
  • {X} : Interpolate D
  • ... : Literals
  • { : Interpolate
  • LÎg : Get the sign of L and index (0-based) into
  • `...` : Compressed string "Go to the store and buy some more\nTake one down and pass it around"
  • · : Split on newlines
  • } : End interpolate
  • ..." : End of string
  • iU : Prepend U
  • Ã :End map
  • ¬ :Join
  • é :Rotate right by
  • ~H : The bitwise NOT of 32 (i.e., -33)
  • # [Japt](https://github.com/ETHproductions/japt), <s>117</s> <s>116</s> 115 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Needs more golfing or, perhaps, a completely different approach. Borrows a <s>couple of tricks</s> trick from [ETHProductions' original version](https://codegolf.stackexchange.com/a/65865/58974).
  • Includes 2 trailing newlines.
  • ´LÇ=L+` Þ­¤{´LÎçs}  Þ8`".
  • {=Z+`  e Ø!`}, {Z}.
  • {LÎg`Go ‘ e ÐJe „d ¿y Ñ Ú
  • Take e ܵ „d p†s Š ÂИ`·}, "iUìé~H
  • [Test it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=tEzHPUwrYCDeraR7tEzO53N9II8g3jhgIi4KCns9WitgII0gkGUg2CFgfSwge1p9Lgp7TM5nYEdvIJEgkGUg0EplIIRkIL95INEgINqQClRha2UgjWUg3LUghGQgcIZzIIogwtCYYLd9LCAiaVXDrOl%2bSA)
  • ´LÇ=L+`...{´LÎçs}...`"...{=Z+`...`}...{Z}...{LÎg`...`·}..."iUìé~H
  • ´L :Prefix decrement L (initially 100)
  • Ç :Map each Z in the range [0,L)
  • = : Reassign to Z
  • L+ : L concatenated with
  • ` : Compressed string
  • ... : " bottle"
  • { : Interpolate
  • ´LÎ : Prefix decrement L and get its sign
  • çs : Repeat "s" that many times
  • } : End interpolate
  • ... : " of beer"
  • ` : End compressed string
  • "... : Literal string (the return value)
  • { : Interpolate
  • = : Assign to variable U
  • X+`...` : X & the compressed string " on the wall"
  • } : End interpolate
  • ... : Literals
  • {X} : Interpolate D
  • ... : Literals
  • { : Interpolate
  • LÎg : Get the sign of L and index (0-based) into
  • `...` : Compressed string "Go to the store and buy some more\nTake one down and pass it around"
  • · : Split on newlines
  • } : End interpolate
  • ..." : End of string
  • iU : Prepend U
  • Ã :End map
  • ¬ :Join
  • é :Rotate right by
  • ~H : The bitwise NOT of 32 (i.e., -33)
#7: Post edited by user avatar Shaggy‭ · 2021-09-10T15:54:08Z (over 2 years ago)
  • # [Japt](https://github.com/ETHproductions/japt), <s>117</s> <s>116</s> 115 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Needs more golfing or, perhaps, a completely different approach. Borrows a <s>couple of tricks</s> trick from [ETHProductions' original version](https://codegolf.stackexchange.com/a/65865/58974).
  • Includes 2 trailing newlines.
  • ´LÆ".
  • {=`  e Ø!`iP=L+` Þ­¤{´LÎçs}  Þ8`}, {P}.
  • {LÎg`Go ‘ e ÐJe „d ¿y Ñ Ú
  • Take e ܵ „d p†s Š ÂИ`·}, "iUìé~H
  • [Test it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=tEzGIi4KCns9YCCNIJBlINghYGlQPUwrYCDeraR7tEzO53N9II8g3jhgfSwge1B9Lgp7TM5nYEdvIJEgkGUg0EplIIRkIL95INEgINqQClRha2UgjWUg3LUghGQgcIZzIIogwtCYYLd9LCAiaVXDrOl%2bSA)
  • ´Lõ Ô˱`...{´LÎçs}...`"...{=D+`...`}...{D}...{LÎg`...`·}..."iUìé~H
  • ´L :Prefix decrement L (initially 100)
  • õ :Range [1,L]
  • Ô :Reverse
  • Ë :Map each D
  • ± : Append
  • ` : Compressed string
  • ... : " bottle"
  • { : Interpolate
  • ´LÎ : Prefix decrement L and get its sign
  • çs : Repeat "s" that many times
  • } : End interpolate
  • ... : " of beer"
  • ` : End compressed string
  • "... : Literal string (the return value)
  • { : Interpolate
  • = : Assign to variable U
  • D+`...` : D & the compressed string " on the wall"
  • } : End interpolate
  • ... : Literals
  • {D} : Interpolate D
  • ... : Literals
  • { : Interpolate
  • LÎg : Get the sign of L and index (0-based) into
  • `...` : Compressed string "Go to the store and buy some more
  • Take one down and pass it around"
  • · : Split on newlines
  • } : End interpolate
  • ..." : End of string
  • iU : Prepend U
  • Ã :End map
  • ¬ :Join
  • é :Rotate right by
  • ~H : The bitwise NOT of 32 (i.e., -33)
  • # [Japt](https://github.com/ETHproductions/japt), <s>117</s> <s>116</s> 115 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Needs more golfing or, perhaps, a completely different approach. Borrows a <s>couple of tricks</s> trick from [ETHProductions' original version](https://codegolf.stackexchange.com/a/65865/58974).
  • Includes 2 trailing newlines.
  • ´LÆ".
  • {=`  e Ø!`iP=L+` Þ­¤{´LÎçs}  Þ8`}, {P}.
  • {LÎg`Go ‘ e ÐJe „d ¿y Ñ Ú
  • Take e ܵ „d p†s Š ÂИ`·}, "iUìé~H
  • [Test it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=tEzGIi4KCns9YCCNIJBlINghYGlQPUwrYCDeraR7tEzO53N9II8g3jhgfSwge1B9Lgp7TM5nYEdvIJEgkGUg0EplIIRkIL95INEgINqQClRha2UgjWUg3LUghGQgcIZzIIogwtCYYLd9LCAiaVXDrOl%2bSA)
  • ´LÇ=L+`...{´LÎçs}...`"...{=Z+`...`}...{Z}...{LÎg`...`·}..."iUìé~H
  • ´L :Prefix decrement L (initially 100)
  • Ç :Map each Z in the range [0,L)
  • = : Reassign to Z
  • L+ : L concatenated with
  • ` : Compressed string
  • ... : " bottle"
  • { : Interpolate
  • ´LÎ : Prefix decrement L and get its sign
  • çs : Repeat "s" that many times
  • } : End interpolate
  • ... : " of beer"
  • ` : End compressed string
  • "... : Literal string (the return value)
  • { : Interpolate
  • = : Assign to variable U
  • X+`...` : X & the compressed string " on the wall"
  • } : End interpolate
  • ... : Literals
  • {X} : Interpolate D
  • ... : Literals
  • { : Interpolate
  • LÎg : Get the sign of L and index (0-based) into
  • `...` : Compressed string "Go to the store and buy some more
  • Take one down and pass it around"
  • · : Split on newlines
  • } : End interpolate
  • ..." : End of string
  • iU : Prepend U
  • Ã :End map
  • ¬ :Join
  • é :Rotate right by
  • ~H : The bitwise NOT of 32 (i.e., -33)
#6: Post edited by user avatar Shaggy‭ · 2021-09-10T14:16:58Z (over 2 years ago)
  • # [Japt](https://github.com/ETHproductions/japt), <s>117</s> 116 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Needs more golfing or, perhaps, a completely different approach. Borrows a couple of tricks from [ETHProductions' original version](https://codegolf.stackexchange.com/a/65865/58974).
  • Includes 2 trailing newlines.
  • ´Lõ Ô˱` Þ­¤{´LÎçs}  Þ8`".
  • {=D+`  e Ø!`}, {D}.
  • {LÎg`Go ‘ e ÐJe „d ¿y Ñ Ú
  • Take e ܵ „d p†s Š ÂИ`·}, "iUìé~H
  • [Test it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=tEz1INTLsWAg3q2ke7RMzudzfSCPIN44YCIuCgp7PUQrYCCNIJBlINghYH0sIHtEfS4Ke0zOZ2BHbyCRIJBlINBKZSCEZCC/eSDRICDakApUYWtlII1lINy1IIRkIHCGcyCKIMLQmGC3fSwgImlVw6zpfkg)
  • ´Lõ Ô˱`...{´LÎçs}...`"...{=D+`...`}...{D}...{LÎg`...`·}..."iUìé~H
  • ´L :Prefix decrement L (initially 100)
  • õ :Range [1,L]
  • Ô :Reverse
  • Ë :Map each D
  • ± : Append
  • ` : Compressed string
  • ... : " bottle"
  • { : Interpolate
  • ´LÎ : Prefix decrement L and get its sign
  • çs : Repeat "s" that many times
  • } : End interpolate
  • ... : " of beer"
  • ` : End compressed string
  • "... : Literal string (the return value)
  • { : Interpolate
  • = : Assign to variable U
  • D+`...` : D & the compressed string " on the wall"
  • } : End interpolate
  • ... : Literals
  • {D} : Interpolate D
  • ... : Literals
  • { : Interpolate
  • LÎg : Get the sign of L and index (0-based) into
  • `...` : Compressed string "Go to the store and buy some more\nTake one down and pass it around"
  • · : Split on newlines
  • } : End interpolate
  • ..." : End of string
  • iU : Prepend U
  • Ã :End map
  • ¬ :Join
  • é :Rotate right by
  • ~H : The bitwise NOT of 32 (i.e., -33)
  • # [Japt](https://github.com/ETHproductions/japt), <s>117</s> <s>116</s> 115 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Needs more golfing or, perhaps, a completely different approach. Borrows a <s>couple of tricks</s> trick from [ETHProductions' original version](https://codegolf.stackexchange.com/a/65865/58974).
  • Includes 2 trailing newlines.
  • ´LÆ".
  • {=`  e Ø!`iP=L+` Þ­¤{´LÎçs}  Þ8`}, {P}.
  • {LÎg`Go ‘ e ÐJe „d ¿y Ñ Ú
  • Take e ܵ „d p†s Š ÂИ`·}, "iUìé~H
  • [Test it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=tEzGIi4KCns9YCCNIJBlINghYGlQPUwrYCDeraR7tEzO53N9II8g3jhgfSwge1B9Lgp7TM5nYEdvIJEgkGUg0EplIIRkIL95INEgINqQClRha2UgjWUg3LUghGQgcIZzIIogwtCYYLd9LCAiaVXDrOl%2bSA)
  • ´Lõ Ô˱`...{´LÎçs}...`"...{=D+`...`}...{D}...{LÎg`...`·}..."iUìé~H
  • ´L :Prefix decrement L (initially 100)
  • õ :Range [1,L]
  • Ô :Reverse
  • Ë :Map each D
  • ± : Append
  • ` : Compressed string
  • ... : " bottle"
  • { : Interpolate
  • ´LÎ : Prefix decrement L and get its sign
  • çs : Repeat "s" that many times
  • } : End interpolate
  • ... : " of beer"
  • ` : End compressed string
  • "... : Literal string (the return value)
  • { : Interpolate
  • = : Assign to variable U
  • D+`...` : D & the compressed string " on the wall"
  • } : End interpolate
  • ... : Literals
  • {D} : Interpolate D
  • ... : Literals
  • { : Interpolate
  • LÎg : Get the sign of L and index (0-based) into
  • `...` : Compressed string "Go to the store and buy some more\nTake one down and pass it around"
  • · : Split on newlines
  • } : End interpolate
  • ..." : End of string
  • iU : Prepend U
  • Ã :End map
  • ¬ :Join
  • é :Rotate right by
  • ~H : The bitwise NOT of 32 (i.e., -33)
#5: Post edited by user avatar Shaggy‭ · 2021-08-20T11:18:29Z (over 2 years ago)
  • # [Japt](https://github.com/ETHproductions/japt), <s>117</s> 116 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Needs more golfing or, perhaps, a completely different approach. Borrows a couple of tricks from [ETHProductions' original version](https://codegolf.stackexchange.com/a/65865/58974).
  • Includes 2 trailing newlines.
  • ´Lõ Ô˱` Þ­¤{´LÎçs}  Þ8`".
  • {=D+`  e Ø!`}, {D}.
  • {LÎg`Go ‘ e ÐJe „d ¿y Ñ Ú
  • Take e ܵ „d p†s Š ÂИ`·}, "iUìé~H
  • [Test it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=tEz1INTLsWAg3q2ke7RMzudzfSCPIN44YCIuCgp7PUQrYCCNIJBlINghYH0sIHtEfS4Ke0zOZ2BHbyCRIJBlINBKZSCEZCC/eSDRICDakApUYWtlII1lINy1IIRkIHCGcyCKIMLQmGC3fSwgImlVw6zpfkg)
  • ´Lõ Ô˱`...{´DÎçs}...`"...{=D+`...`}...{D}...{´LÎg`...`·}..."iUìé~H
  • ´L :Prefix decrement L (initially 100)
  • õ :Range [1,L]
  • Ô :Reverse
  • Ë :Map each D
  • ± : Append
  • ` : Compressed string
  • ... : " bottle"
  • { : Interpolate
  • ´DÎ : Prefix decrement D and get its sign
  • çs : Repeat "s" that many times
  • } : End interpolate
  • ... : " of beer"
  • ` : End compressed string
  • "... : Literal string (the return value)
  • { : Interpolate
  • = : Assign to variable U
  • D+`...` : D & the compressed string " on the wall"
  • } : End interpolate
  • ... : Literals
  • {D} : Interpolate D
  • ... : Literals
  • { : Interpolate
  • ´LÎg : Prefix decrement L, get its sign and index (0-based) into
  • `...` : Compressed string "Go to the store and buy some more
  • Take one down and pass it around"
  • · : Split on newlines
  • } : End interpolate
  • ..." : End of string
  • iU : Prepend U
  • Ã :End map
  • ¬ :Join
  • é :Rotate right by
  • ~H : The bitwise NOT of 32 (i.e., -33)
  • # [Japt](https://github.com/ETHproductions/japt), <s>117</s> 116 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Needs more golfing or, perhaps, a completely different approach. Borrows a couple of tricks from [ETHProductions' original version](https://codegolf.stackexchange.com/a/65865/58974).
  • Includes 2 trailing newlines.
  • ´Lõ Ô˱` Þ­¤{´LÎçs}  Þ8`".
  • {=D+`  e Ø!`}, {D}.
  • {LÎg`Go ‘ e ÐJe „d ¿y Ñ Ú
  • Take e ܵ „d p†s Š ÂИ`·}, "iUìé~H
  • [Test it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=tEz1INTLsWAg3q2ke7RMzudzfSCPIN44YCIuCgp7PUQrYCCNIJBlINghYH0sIHtEfS4Ke0zOZ2BHbyCRIJBlINBKZSCEZCC/eSDRICDakApUYWtlII1lINy1IIRkIHCGcyCKIMLQmGC3fSwgImlVw6zpfkg)
  • ´Lõ Ô˱`...{´LÎçs}...`"...{=D+`...`}...{D}...{LÎg`...`·}..."iUìé~H
  • ´L :Prefix decrement L (initially 100)
  • õ :Range [1,L]
  • Ô :Reverse
  • Ë :Map each D
  • ± : Append
  • ` : Compressed string
  • ... : " bottle"
  • { : Interpolate
  • ´LÎ : Prefix decrement L and get its sign
  • çs : Repeat "s" that many times
  • } : End interpolate
  • ... : " of beer"
  • ` : End compressed string
  • "... : Literal string (the return value)
  • { : Interpolate
  • = : Assign to variable U
  • D+`...` : D & the compressed string " on the wall"
  • } : End interpolate
  • ... : Literals
  • {D} : Interpolate D
  • ... : Literals
  • { : Interpolate
  • LÎg : Get the sign of L and index (0-based) into
  • `...` : Compressed string "Go to the store and buy some more
  • Take one down and pass it around"
  • · : Split on newlines
  • } : End interpolate
  • ..." : End of string
  • iU : Prepend U
  • Ã :End map
  • ¬ :Join
  • é :Rotate right by
  • ~H : The bitwise NOT of 32 (i.e., -33)
#4: Post edited by user avatar Shaggy‭ · 2021-08-19T19:23:12Z (over 2 years ago)
  • # [Japt](https://github.com/ETHproductions/japt), 117 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Needs more golfing or, perhaps, a completely different approach. Borrows a couple of tricks from [ETHProductions' original version](https://codegolf.stackexchange.com/a/65865/58974).
  • Includes 2 trailing newlines.
  • ´Lõ Ô˱` Þ­¤{´DÎçs}  Þ8`".
  • {=D+`  e Ø!`}, {D}.
  • {´LÎg`Go ‘ e ÐJe „d ¿y Ñ Ú
  • Take e ܵ „d p†s Š ÂИ`·}, "iUìé~H
  • [Test it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=tEz1INTLsWAg3q2ke7REzudzfSCPIN44YCIuCgp7PUQrYCCNIJBlINghYH0sIHtEfS4Ke7RMzmdgR28gkSCQZSDQSmUghGQgv3kg0SAg2pAKVGFrZSCNZSDctSCEZCBwhnMgiiDC0Jhgt30sICJpVcOs6X5I)
  • ´Lõ Ô˱`...{´DÎçs}...`"...{=D+`...`}...{D}...{´LÎg`...`·}..."iUìé~H
  • ´L :Prefix decrement L (initially 100)
  • õ :Range [1,L]
  • Ô :Reverse
  • Ë :Map each D
  • ± : Append
  • ` : Compressed string
  • ... : " bottle"
  • { : Interpolate
  • ´DÎ : Prefix decrement D and get its sign
  • çs : Repeat "s" that many times
  • } : End interpolate
  • ... : " of beer"
  • ` : End compressed string
  • "... : Literal string (the return value)
  • { : Interpolate
  • = : Assign to variable U
  • D+`...` : D & the compressed string " on the wall"
  • } : End interpolate
  • ... : Literals
  • {D} : Interpolate D
  • ... : Literals
  • { : Interpolate
  • ´LÎg : Prefix decrement L, get its sign and index (0-based) into
  • `...` : Compressed string "Go to the store and buy some more\nTake one down and pass it around"
  • · : Split on newlines
  • } : End interpolate
  • ..." : End of string
  • iU : Prepend U
  • Ã :End map
  • ¬ :Join
  • é :Rotate right by
  • ~H : The bitwise NOT of 32 (i.e., -33)
  • # [Japt](https://github.com/ETHproductions/japt), <s>117</s> 116 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Needs more golfing or, perhaps, a completely different approach. Borrows a couple of tricks from [ETHProductions' original version](https://codegolf.stackexchange.com/a/65865/58974).
  • Includes 2 trailing newlines.
  • ´Lõ Ô˱` Þ­¤{´LÎçs}  Þ8`".
  • {=D+`  e Ø!`}, {D}.
  • {LÎg`Go ‘ e ÐJe „d ¿y Ñ Ú
  • Take e ܵ „d p†s Š ÂИ`·}, "iUìé~H
  • [Test it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=tEz1INTLsWAg3q2ke7RMzudzfSCPIN44YCIuCgp7PUQrYCCNIJBlINghYH0sIHtEfS4Ke0zOZ2BHbyCRIJBlINBKZSCEZCC/eSDRICDakApUYWtlII1lINy1IIRkIHCGcyCKIMLQmGC3fSwgImlVw6zpfkg)
  • ´Lõ Ô˱`...{´DÎçs}...`"...{=D+`...`}...{D}...{´LÎg`...`·}..."iUìé~H
  • ´L :Prefix decrement L (initially 100)
  • õ :Range [1,L]
  • Ô :Reverse
  • Ë :Map each D
  • ± : Append
  • ` : Compressed string
  • ... : " bottle"
  • { : Interpolate
  • ´DÎ : Prefix decrement D and get its sign
  • çs : Repeat "s" that many times
  • } : End interpolate
  • ... : " of beer"
  • ` : End compressed string
  • "... : Literal string (the return value)
  • { : Interpolate
  • = : Assign to variable U
  • D+`...` : D & the compressed string " on the wall"
  • } : End interpolate
  • ... : Literals
  • {D} : Interpolate D
  • ... : Literals
  • { : Interpolate
  • ´LÎg : Prefix decrement L, get its sign and index (0-based) into
  • `...` : Compressed string "Go to the store and buy some more\nTake one down and pass it around"
  • · : Split on newlines
  • } : End interpolate
  • ..." : End of string
  • iU : Prepend U
  • Ã :End map
  • ¬ :Join
  • é :Rotate right by
  • ~H : The bitwise NOT of 32 (i.e., -33)
#3: Post edited by user avatar Shaggy‭ · 2021-08-06T13:18:57Z (over 2 years ago)
  • # [Japt](https://github.com/ETHproductions/japt), 117 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Needs more golfing or, perhaps, a completely different approach. Borrows a couple of tricks from [ETHProductions' original version](https://codegolf.stackexchange.com/a/65865/58974).
  • Includes 2 trailing newlines.
  • ´Lõ Ô˱` Þ­¤{´DÎçs}  Þ8`".
  • {=D+`  e Ø!`}, {D}.
  • {´LÎg`Go ‘ e ÐJe „d ¿y Ñ Ú
  • Take e ܵ „d p†s Š ÂИ`·}, "iUìé~H
  • [Test it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=tEz1INTLsWAg3q2ke7REzudzfSCPIN44YCIuCgp7PUQrYCCNIJBlINghYH0sIHtEfS4Ke7RMzmdgR28gkSCQZSDQSmUghGQgv3kg0SAg2pAKVGFrZSCNZSDctSCEZCBwhnMgiiDC0Jhgt30sICJpVcOs6X5I)
  • # [Japt](https://github.com/ETHproductions/japt), 117 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Needs more golfing or, perhaps, a completely different approach. Borrows a couple of tricks from [ETHProductions' original version](https://codegolf.stackexchange.com/a/65865/58974).
  • Includes 2 trailing newlines.
  • ´Lõ Ô˱` Þ­¤{´DÎçs}  Þ8`".
  • {=D+`  e Ø!`}, {D}.
  • {´LÎg`Go ‘ e ÐJe „d ¿y Ñ Ú
  • Take e ܵ „d p†s Š ÂИ`·}, "iUìé~H
  • [Test it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=tEz1INTLsWAg3q2ke7REzudzfSCPIN44YCIuCgp7PUQrYCCNIJBlINghYH0sIHtEfS4Ke7RMzmdgR28gkSCQZSDQSmUghGQgv3kg0SAg2pAKVGFrZSCNZSDctSCEZCBwhnMgiiDC0Jhgt30sICJpVcOs6X5I)
  • ´Lõ Ô˱`...{´DÎçs}...`"...{=D+`...`}...{D}...{´LÎg`...`·}..."iUìé~H
  • ´L :Prefix decrement L (initially 100)
  • õ :Range [1,L]
  • Ô :Reverse
  • Ë :Map each D
  • ± : Append
  • ` : Compressed string
  • ... : " bottle"
  • { : Interpolate
  • ´DÎ : Prefix decrement D and get its sign
  • çs : Repeat "s" that many times
  • } : End interpolate
  • ... : " of beer"
  • ` : End compressed string
  • "... : Literal string (the return value)
  • { : Interpolate
  • = : Assign to variable U
  • D+`...` : D & the compressed string " on the wall"
  • } : End interpolate
  • ... : Literals
  • {D} : Interpolate D
  • ... : Literals
  • { : Interpolate
  • ´LÎg : Prefix decrement L, get its sign and index (0-based) into
  • `...` : Compressed string "Go to the store and buy some more\nTake one down and pass it around"
  • · : Split on newlines
  • } : End interpolate
  • ..." : End of string
  • iU : Prepend U
  • Ã :End map
  • ¬ :Join
  • é :Rotate right by
  • ~H : The bitwise NOT of 32 (i.e., -33)
#2: Post edited by user avatar Shaggy‭ · 2021-08-06T11:28:49Z (over 2 years ago)
  • # [Japt](https://github.com/ETHproductions/japt) [`-x`](https://codegolf.meta.stackexchange.com/a/14339/), 117 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Needs more golfing or, perhaps, a completely different approach. Borrows a couple of tricks from [ETHProductions' original version](https://codegolf.stackexchange.com/a/65865/58974)
  • ´Lõ Ô˱` Þ­¤{´DÎçs}  Þ8`".
  • {=D+`  e Ø!`}, {D}.
  • {´LÎg`Go ‘ e ÐJe „d ¿y Ñ Ú
  • Take e ܵ „d p†s Š ÂИ`·}, "iUìé~H
  • [Test it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LXg&code=tEz1INTLsWAg3q2ke7REzudzfSCPIN44YCIuCgp7PUQrYCCNIJBlINghYH0sIHtEfS4Ke7RMzmdgR28gkSCQZSDQSmUghGQgv3kg0SAg2pAKVGFrZSCNZSDctSCEZCBwhnMgiiDC0Jhgt30sICJpVcOs6X5I)
  • # [Japt](https://github.com/ETHproductions/japt), 117 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Needs more golfing or, perhaps, a completely different approach. Borrows a couple of tricks from [ETHProductions' original version](https://codegolf.stackexchange.com/a/65865/58974).
  • Includes 2 trailing newlines.
  • ´Lõ Ô˱` Þ­¤{´DÎçs}  Þ8`".
  • {=D+`  e Ø!`}, {D}.
  • {´LÎg`Go ‘ e ÐJe „d ¿y Ñ Ú
  • Take e ܵ „d p†s Š ÂИ`·}, "iUìé~H
  • [Test it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=tEz1INTLsWAg3q2ke7REzudzfSCPIN44YCIuCgp7PUQrYCCNIJBlINghYH0sIHtEfS4Ke7RMzmdgR28gkSCQZSDQSmUghGQgv3kg0SAg2pAKVGFrZSCNZSDctSCEZCBwhnMgiiDC0Jhgt30sICJpVcOs6X5I)
#1: Initial revision by user avatar Shaggy‭ · 2021-08-06T09:24:29Z (over 2 years ago)
# [Japt](https://github.com/ETHproductions/japt) [`-x`](https://codegolf.meta.stackexchange.com/a/14339/), 117 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)

Needs more golfing or, perhaps, a completely different approach. Borrows a couple of tricks from [ETHProductions' original version](https://codegolf.stackexchange.com/a/65865/58974)

    ´Lõ Ô˱` Þ­¤{´DÎçs}  Þ8`".
    
    {=D+`  e Ø!`}, {D}.
    {´LÎg`Go ‘ e ÐJe „d ¿y Ñ  ڐ
    Take e ܵ „d p†s Š ÂИ`·}, "iUìé~H

[Test it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LXg&code=tEz1INTLsWAg3q2ke7REzudzfSCPIN44YCIuCgp7PUQrYCCNIJBlINghYH0sIHtEfS4Ke7RMzmdgR28gkSCQZSDQSmUghGQgv3kg0SAg2pAKVGFrZSCNZSDctSCEZCBwhnMgiiDC0Jhgt30sICJpVcOs6X5I)