Citrine/US | Manual

[ List ] replace: [ Number ] length: [ Number ] with: [ List ].

☞ x := List ← 1 ; 2 ; 3 ; 4 ; 5.
☞ z := List ← 9.
☞ y := x replace: 2 length: 1 with: z.
✎ write: y, stop.
List ← 1 ; 9 ; 3 ; 4 ; 5