%
% Pieces of strings
%

var s: string := "hi there        "
var i: int := 4

put s(2)

put s(1..3)

put s(i..*)

put s(*-i .. *)

%
% \f(HDNote:\fP  you cannot do this:
%

s(2) = "no way"

%
% You can't even do this:
%

s(2) = "o"

%
% How would you change "hi there" to "ho there"?
% I.e., you want a string, say s2, that looks like s
% except in position 2.
%
