gobasic icon indicating copy to clipboard operation
gobasic copied to clipboard

ZXBasic string slicing

Open udhos opened this issue 6 years ago • 0 comments

Found a funny feature called string slicing in ZXBasic:

There is a notation called slicing for describing substrings, and this can be applied to arbitrary string expressions.

"abcdef"(2 TO 5)="bcde"

http://www.worldofspectrum.org/ZXBasicManual/zxmanchap8.html

udhos avatar Feb 11 '19 21:02 udhos