RosettaCodeData/Task/Strip-comments-from-a-string/PL-I/strip-comments-from-a-string.pli
2023-07-01 13:44:08 -04:00

3 lines
112 B
Text

k = search(text, '#;');
if k = 0 then put skip list (text);
else put skip list (substr(text, 1, k-1));