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

Post Undeleted by Aaron
added 239 characters in body
Source Link
Aaron
  • 731
  • 2
  • 7

Dyalog APL, 1630 chars

+×ばつ+/'''+×ばつ+/∊∘'''''∘∊⍵∊⍨{},3/',3/''''}

Fun!

Function checks for membership of the input in the string "+

×ばつ+/⍵∊⍨{},3/'''''

Because it takes 2 single quote marks in a row inside a string to represent a 1 single quote mark, I had to use replicate (3/'∊∘''"'''') to get extra copies in and concat that with the rest of the program string.

Dyalog APL, 16 chars

+/'''+/∊∘'''''∘∊

Fun!

Function checks for membership of the input in the string "+/'∊∘''"

Dyalog APL, 30 chars

×ばつ+/×ばつ+/⍵∊⍨{},3/',3/''''}

Fun!

Function checks for membership of the input in the string

×ばつ+/⍵∊⍨{},3/'''''

Because it takes 2 single quote marks in a row inside a string to represent a 1 single quote mark, I had to use replicate (3/'''') to get extra copies in and concat that with the rest of the program string.

Post Deleted by Aaron
Misread the question
Source Link
Aaron
  • 731
  • 2
  • 7

Dyalog APL, 816 chars

∊∘'∊∘'''+/'''+/∊∘'''''∘∊

Fun!

Function checks for membership of the input in the string "∊∘'""+/'∊∘''"

Dyalog APL, 8 chars

∊∘'∊∘'''

Fun!

Function checks for membership of the input in the string "∊∘'"

Dyalog APL, 16 chars

+/'''+/∊∘'''''∘∊

Fun!

Function checks for membership of the input in the string "+/'∊∘''"

Source Link
Aaron
  • 731
  • 2
  • 7

Dyalog APL, 8 chars

∊∘'∊∘'''

Fun!

Function checks for membership of the input in the string "∊∘'"

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