Skip to main content
added 60 characters in body
Source Link
Nick Kennedy
  • 21.2k
  • 3
  • 17
  • 43

Jelly, 55 4 bytes

OṾ;”ỌOṾ”Ọ

Try it online!Try it online!

A monadic functionfull program that takes a string and returns. string that consists ofprints a Jelly niladic link that outputs the string.

Thanks to @JonathanAllan for saving a byte!

Explanation

O     | Codepoints
 Ṿ    | Uneval (and implicitly print)
  ;”Ọ”Ọ | Append an "Ọ" (implicitly printed)

Jelly, 5 bytes

OṾ;”Ọ

Try it online!

A monadic function that takes a string and returns. string that consists of a Jelly niladic link that outputs the string.

Explanation

O     | Codepoints
 Ṿ    | Uneval
  ;”Ọ | Append an "Ọ"

Jelly, 5 4 bytes

OṾ”Ọ

Try it online!

A full program that takes a string and prints a Jelly niladic link that outputs the string.

Thanks to @JonathanAllan for saving a byte!

Explanation

O    | Codepoints
 Ṿ   | Uneval (and implicitly print)
  ”Ọ | an "Ọ" (implicitly printed)
Source Link
Nick Kennedy
  • 21.2k
  • 3
  • 17
  • 43

Jelly, 5 bytes

OṾ;”Ọ

Try it online!

A monadic function that takes a string and returns. string that consists of a Jelly niladic link that outputs the string.

Explanation

O     | Codepoints
 Ṿ    | Uneval
  ;”Ọ | Append an "Ọ"