Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

Commonmark migration
Source Link

#05AB1E , Score: 22 (22 bytes * 1)

05AB1E , Score: 22 (22 bytes * 1)

...‚¿• ́,„ˆ ̈èã).aðý23£'!«

Try it online.

Explanation:

NOTE 1: The wrap stack into list builtin ) is used instead of the builtin pair , because the is already part of the dictionary word good.
NOTE 2: The two commas in the code and , may look the same, but are different unicode characters. The first one is usually used for the builtin pair, and the second for the builtin print to STDOUT with trailing newline. In this case they are used for the dictionary word good, and the expected comma in the output however.

...‚¿• ́, # 3-word dictionary string "good morning," (the comma counts as the third word)
„ˆ ̈èã # 2-word dictionary string "green orbit"
) # Wrap everything on the stack into a list: ["good morning,","green orbit"]
 .a # Sentence capitalize all strings: ["Good morning,","Green orbit"]
 ðý # Join by spaces: "Good morning, Green orbit"
 23£ # Only leave the first 23 characters: "Good morning, Green orb"
 '!« '# Append a "!": "Good morning, Green orb!" (and output the result implicitly)

See this 05AB1E tip of mine (section How to use the dictionary?) to understand why ...‚¿• ́, is "good morning," and „ˆ ̈èã is "green orbit".

#05AB1E , Score: 22 (22 bytes * 1)

...‚¿• ́,„ˆ ̈èã).aðý23£'!«

Try it online.

Explanation:

NOTE 1: The wrap stack into list builtin ) is used instead of the builtin pair , because the is already part of the dictionary word good.
NOTE 2: The two commas in the code and , may look the same, but are different unicode characters. The first one is usually used for the builtin pair, and the second for the builtin print to STDOUT with trailing newline. In this case they are used for the dictionary word good, and the expected comma in the output however.

...‚¿• ́, # 3-word dictionary string "good morning," (the comma counts as the third word)
„ˆ ̈èã # 2-word dictionary string "green orbit"
) # Wrap everything on the stack into a list: ["good morning,","green orbit"]
 .a # Sentence capitalize all strings: ["Good morning,","Green orbit"]
 ðý # Join by spaces: "Good morning, Green orbit"
 23£ # Only leave the first 23 characters: "Good morning, Green orb"
 '!« '# Append a "!": "Good morning, Green orb!" (and output the result implicitly)

See this 05AB1E tip of mine (section How to use the dictionary?) to understand why ...‚¿• ́, is "good morning," and „ˆ ̈èã is "green orbit".

05AB1E , Score: 22 (22 bytes * 1)

...‚¿• ́,„ˆ ̈èã).aðý23£'!«

Try it online.

Explanation:

NOTE 1: The wrap stack into list builtin ) is used instead of the builtin pair , because the is already part of the dictionary word good.
NOTE 2: The two commas in the code and , may look the same, but are different unicode characters. The first one is usually used for the builtin pair, and the second for the builtin print to STDOUT with trailing newline. In this case they are used for the dictionary word good, and the expected comma in the output however.

...‚¿• ́, # 3-word dictionary string "good morning," (the comma counts as the third word)
„ˆ ̈èã # 2-word dictionary string "green orbit"
) # Wrap everything on the stack into a list: ["good morning,","green orbit"]
 .a # Sentence capitalize all strings: ["Good morning,","Green orbit"]
 ðý # Join by spaces: "Good morning, Green orbit"
 23£ # Only leave the first 23 characters: "Good morning, Green orb"
 '!« '# Append a "!": "Good morning, Green orb!" (and output the result implicitly)

See this 05AB1E tip of mine (section How to use the dictionary?) to understand why ...‚¿• ́, is "good morning," and „ˆ ̈èã is "green orbit".

added 58 characters in body
Source Link
Kevin Cruijssen
  • 136.2k
  • 14
  • 154
  • 394

#05AB1E, Score: 22 (22 bytes * 1)

...‚¿• ́,„ˆ ̈èã).aðý23£'!«

Try it online.

Explanation:

NOTE 1: The wrap-stack-into-list wrap stack into list builtin ) is used instead of pairthe builtin pair , since it'sbecause the is already part of the dictionary word good.
NOTE 2: The two commas in the code and , may look the same, but are different unicode characters. The first one is usually used for the builtin pair, and the second for the builtin print to STDOUT with trailing newline. In this case they are used for the dictionary word good, and the expected comma in the output however.

...‚¿• ́, # 3-word dictionary string "good morning," (the comma counts as the third word)
„ˆ ̈èã # 2-word dictionary string "green orbit"
) # Wrap everything on the stack into a list: ["good morning,","green orbit"]
 .a # Sentence capitalize bothall strings: ["Good morning,","Green orbit"]
 ðý # Join by spaces: "Good morning, Green orbit"
 23£ # Only leave the first 23 letterscharacters: "Good morning, Green orb"
 '!« '# Append a "!": "Good morning, Green orb!"
 # (and output the result implicitly)

See this 05AB1E tip of mine (section How to use the dictionary?) to understand why ...‚¿• ́, is "good morning," and „ˆ ̈èã is "green orbit".

#05AB1E, Score: 22 (22 bytes * 1)

...‚¿• ́,„ˆ ̈èã).aðý23£'!«

Try it online.

Explanation:

NOTE 1: The wrap-stack-into-list ) is used instead of pair , since it's already part of the dictionary word good.
NOTE 2: The two commas in the code and , may look the same, but are different unicode characters. The first one is usually used for the builtin pair, and the second for the builtin print to STDOUT with trailing newline. In this case they are used for the dictionary word good, and the expected comma in the output.

...‚¿• ́, # 3-word dictionary string "good morning,"
„ˆ ̈èã # 2-word dictionary string "green orbit"
) # Wrap everything on the stack into a list: ["good morning,","green orbit"]
 .a # Sentence capitalize both strings: ["Good morning,","Green orbit"]
 ðý # Join by spaces: "Good morning, Green orbit"
 23£ # Only leave the first 23 letters: "Good morning, Green orb"
 '!« '# Append a "!": "Good morning, Green orb!"
 # (and output the result implicitly)

See this 05AB1E tip of mine (section How to use the dictionary?) to understand why ...‚¿• ́, is "good morning," and „ˆ ̈èã is "green orbit".

#05AB1E, Score: 22 (22 bytes * 1)

...‚¿• ́,„ˆ ̈èã).aðý23£'!«

Try it online.

Explanation:

NOTE 1: The wrap stack into list builtin ) is used instead of the builtin pair , because the is already part of the dictionary word good.
NOTE 2: The two commas in the code and , may look the same, but are different unicode characters. The first one is usually used for the builtin pair, and the second for the builtin print to STDOUT with trailing newline. In this case they are used for the dictionary word good, and the expected comma in the output however.

...‚¿• ́, # 3-word dictionary string "good morning," (the comma counts as the third word)
„ˆ ̈èã # 2-word dictionary string "green orbit"
) # Wrap everything on the stack into a list: ["good morning,","green orbit"]
 .a # Sentence capitalize all strings: ["Good morning,","Green orbit"]
 ðý # Join by spaces: "Good morning, Green orbit"
 23£ # Only leave the first 23 characters: "Good morning, Green orb"
 '!« '# Append a "!": "Good morning, Green orb!" (and output the result implicitly)

See this 05AB1E tip of mine (section How to use the dictionary?) to understand why ...‚¿• ́, is "good morning," and „ˆ ̈èã is "green orbit".

Source Link
Kevin Cruijssen
  • 136.2k
  • 14
  • 154
  • 394

#05AB1E, Score: 22 (22 bytes * 1)

...‚¿• ́,„ˆ ̈èã).aðý23£'!«

Try it online.

Explanation:

NOTE 1: The wrap-stack-into-list ) is used instead of pair , since it's already part of the dictionary word good.
NOTE 2: The two commas in the code and , may look the same, but are different unicode characters. The first one is usually used for the builtin pair, and the second for the builtin print to STDOUT with trailing newline. In this case they are used for the dictionary word good, and the expected comma in the output.

...‚¿• ́, # 3-word dictionary string "good morning,"
„ˆ ̈èã # 2-word dictionary string "green orbit"
) # Wrap everything on the stack into a list: ["good morning,","green orbit"]
 .a # Sentence capitalize both strings: ["Good morning,","Green orbit"]
 ðý # Join by spaces: "Good morning, Green orbit"
 23£ # Only leave the first 23 letters: "Good morning, Green orb"
 '!« '# Append a "!": "Good morning, Green orb!"
 # (and output the result implicitly)

See this 05AB1E tip of mine (section How to use the dictionary?) to understand why ...‚¿• ́, is "good morning," and „ˆ ̈èã is "green orbit".

AltStyle によって変換されたページ (->オリジナル) /