RosettaCodeData/Task/Substring-Top-and-tail/LiveCode/substring-top-and-tail.live...

5 lines
126 B
Plaintext

put "pple" into x
answer char 2 to len(x) of x // pple
answer char 1 to -2 of x // ppl
answer char 2 to -2 of x // ppl