Skip to main content
Commonmark migration
Source Link

#MATL, 8 bytes

MATL, 8 bytes

'X&'''X&

Try it online!

Input is a string enclosed in single quotes. If the string contains a single-quote symbol, it should be duplicated to escape it.

###Explanation

Explanation

'X&'''   % Push string with the three characters used by the program. The single-quote 
         % symbol needs to be escaped by duplicating it
X&       % Take input implicitly. Set intersection. Display implicitly

#MATL, 8 bytes

'X&'''X&

Try it online!

Input is a string enclosed in single quotes. If the string contains a single-quote symbol, it should be duplicated to escape it.

###Explanation

'X&'''   % Push string with the three characters used by the program. The single-quote 
         % symbol needs to be escaped by duplicating it
X&       % Take input implicitly. Set intersection. Display implicitly

MATL, 8 bytes

'X&'''X&

Try it online!

Input is a string enclosed in single quotes. If the string contains a single-quote symbol, it should be duplicated to escape it.

Explanation

'X&'''   % Push string with the three characters used by the program. The single-quote 
         % symbol needs to be escaped by duplicating it
X&       % Take input implicitly. Set intersection. Display implicitly
added 20 characters in body
Source Link
Luis Mendo
  • 106.7k
  • 10
  • 139
  • 382

#MATL, 8 bytes

'X&'''X&

Try it online!

Input is a string enclosed in single quotes. If the string contains a single-quote symbol, it should be duplicated to escape it.

###Explanation

'X&'''   % Push string with the three characters used by the program. SingleThe single-quote 
         % issymbol needs to be escaped by duplicating it
X&       % Take input implicitly. Set intersection. Display implicitly

#MATL, 8 bytes

'X&'''X&

Try it online!

Input is a string enclosed in single quotes. If the string contains a single-quote symbol, it should be duplicated to escape it.

###Explanation

'X&'''   % Push string with the three characters used by the program. Single quote 
         % is escaped by duplicating it
X&       % Take input implicitly. Set intersection. Display implicitly

#MATL, 8 bytes

'X&'''X&

Try it online!

Input is a string enclosed in single quotes. If the string contains a single-quote symbol, it should be duplicated to escape it.

###Explanation

'X&'''   % Push string with the three characters used by the program. The single-quote 
         % symbol needs to be escaped by duplicating it
X&       % Take input implicitly. Set intersection. Display implicitly
edited body
Source Link
Luis Mendo
  • 106.7k
  • 10
  • 139
  • 382

#MATL, 8 bytes

'X&'''X&

Try it online!Try it online!

Input is a string enclosed in single quotes. If the string contains a single-quote symbol, it should be duplicated to escape it.

###Explanation

'X&'''   % Push string with the three characters used by the program. Single quote 
         % is escaped by duplicating it
X&       % Take input implicitly. Set intersection. Display implicitly

#MATL, 8 bytes

'X&'''X&

Try it online!

Input is a string enclosed in single quotes. If the string contains a single-quote symbol, it should be duplicated to escape it.

###Explanation

'X&'''   % Push string with the three characters used by the program. Single quote 
         % is escaped by duplicating it
X&       % Take input implicitly. Set intersection. Display implicitly

#MATL, 8 bytes

'X&'''X&

Try it online!

Input is a string enclosed in single quotes. If the string contains a single-quote symbol, it should be duplicated to escape it.

###Explanation

'X&'''   % Push string with the three characters used by the program. Single quote 
         % is escaped by duplicating it
X&       % Take input implicitly. Set intersection. Display implicitly
Source Link
Luis Mendo
  • 106.7k
  • 10
  • 139
  • 382
Loading