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

#Charm , 52 bytes

Charm , 52 bytes

This outputs all of the reserved words in Charm.

" [ := :: \" " 0 2 copyfrom 3 * substring pstring

Since all non-recursive code in Charm is inline-able, this is an anonymous function. Call like this:

4 " [ := :: \" " 0 2 copyfrom 3 * substring pstring 

(outputs [ := :: ", the only four reserved words.)


Giving this function a name adds 5 bytes:

f := " [ := :: \" " 0 2 copyfrom 3 * substring pstring

#Charm , 52 bytes

This outputs all of the reserved words in Charm.

" [ := :: \" " 0 2 copyfrom 3 * substring pstring

Since all non-recursive code in Charm is inline-able, this is an anonymous function. Call like this:

4 " [ := :: \" " 0 2 copyfrom 3 * substring pstring 

(outputs [ := :: ", the only four reserved words.)


Giving this function a name adds 5 bytes:

f := " [ := :: \" " 0 2 copyfrom 3 * substring pstring

Charm , 52 bytes

This outputs all of the reserved words in Charm.

" [ := :: \" " 0 2 copyfrom 3 * substring pstring

Since all non-recursive code in Charm is inline-able, this is an anonymous function. Call like this:

4 " [ := :: \" " 0 2 copyfrom 3 * substring pstring 

(outputs [ := :: ", the only four reserved words.)


Giving this function a name adds 5 bytes:

f := " [ := :: \" " 0 2 copyfrom 3 * substring pstring
Source Link
Aearnus
  • 271
  • 1
  • 6

#Charm, 52 bytes

This outputs all of the reserved words in Charm.

" [ := :: \" " 0 2 copyfrom 3 * substring pstring

Since all non-recursive code in Charm is inline-able, this is an anonymous function. Call like this:

4 " [ := :: \" " 0 2 copyfrom 3 * substring pstring 

(outputs [ := :: ", the only four reserved words.)


Giving this function a name adds 5 bytes:

f := " [ := :: \" " 0 2 copyfrom 3 * substring pstring

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