RosettaCodeData/Task/Substring/Maxima/substring.maxima

6 lines
138 B
Plaintext

s: "the quick brown fox jumps over the lazy dog";
substring(s, 17);
/* "fox jumps over the lazy dog" */
substring(s, 17, 20);
/* "fox" */