Skip to main content
Commonmark migration
Source Link

#MATL, 14 bytes

MATL, 14 bytes

jXKx`jHY2KXEDT

The program exits with an error after producing the correct output (allowed by default).

Try it online

#MATL, 14 bytes

jXKx`jHY2KXEDT

The program exits with an error after producing the correct output (allowed by default).

Try it online

MATL, 14 bytes

jXKx`jHY2KXEDT

The program exits with an error after producing the correct output (allowed by default).

Try it online

added 35 characters in body
Source Link
Luis Mendo
  • 105.3k
  • 9
  • 135
  • 372

#MATL, 14 bytes

jXKx`jHY2KXEDT

The program exits with an error after producing the correct output (allowed by default).

Try it online

#MATL, 14 bytes

jXKx`jHY2KXEDT

The program exits with an error (allowed by default).

Try it online

#MATL, 14 bytes

jXKx`jHY2KXEDT

The program exits with an error after producing the correct output (allowed by default).

Try it online

deleted 426 characters in body
Source Link
Luis Mendo
  • 105.3k
  • 9
  • 135
  • 372

#MATL, 1514 bytes

`jt]Nq$Xh2Y2bXEjXKx`jHY2KXEDT

The input needsprogram exits with an extra trailing newlineerror (this is used for marking the end of inputallowed by default).

Try it onlineTry it online

`      % do...while loop
  j    %   read a line of input
  t    %   duplicate. Used as loop condition: if not empty proceed with next iteration
]      % end loop
Nq$Xh  % concatenate all strings except the first into a cell array
2Y2    % predefined literal: 'abc...z'
b      % move first string to top of stack
XE     % transliterate. Implicit display

#MATL, 15 bytes

`jt]Nq$Xh2Y2bXE

The input needs an extra trailing newline (this is used for marking the end of input).

Try it online

`      % do...while loop
  j    %   read a line of input
  t    %   duplicate. Used as loop condition: if not empty proceed with next iteration
]      % end loop
Nq$Xh  % concatenate all strings except the first into a cell array
2Y2    % predefined literal: 'abc...z'
b      % move first string to top of stack
XE     % transliterate. Implicit display

#MATL, 14 bytes

jXKx`jHY2KXEDT

The program exits with an error (allowed by default).

Try it online

deleted 1 character in body
Source Link
Luis Mendo
  • 105.3k
  • 9
  • 135
  • 372
Loading
added 1 character in body
Source Link
Luis Mendo
  • 105.3k
  • 9
  • 135
  • 372
Loading
Source Link
Luis Mendo
  • 105.3k
  • 9
  • 135
  • 372
Loading