チャンクを利用する
チャンクに保存する
値の一部にアクセスするだけでなく、チャンク表現は、アクセスされているものがコンテナである場合、値の一部に保存するためにも使用できます。
put "Jack Peterson" into name
put "d" into char 3 of last word of name
put "e" into char -2 of name
put "Olaf" into first word of name
put name -- "Olaf Pedersen"
また、チャンクの前後に何かを保存することもできます。
put "The plant is growing" into phrase
put "egg" before word 2 of phrase
put " purple" after word 1 of phrase
put phrase -- "The purple eggplant is growing"