RosettaCodeData/Task/Substring-Top-and-tail/Lasso/substring-top-and-tail-1.lasso
2016-12-05 23:44:36 +01:00

10 lines
445 B
Text

local(str = 'The quick grey rhino jumped over the lazy green fox.')
// String with first character removed
string_remove(#str,-startposition=1,-endposition=1)
// String with last character removed
string_remove(#str,-startposition=#str->size,-endposition=#str->size)
// String with both the first and last characters removed
string_remove(string_remove(#str,-startposition=#str->size,-endposition=#str->size),-startposition=1,-endposition=1)