从序列中删除索引处的元素

Remove element at index from sequence

我有一个 sequence,我想从它的某个索引处删除一个元素。我该怎么做?

您可以使用删除:

var
  a = @[1, 2, 3]

echo a
a.delete(1)  
echo a

Link: http://ideone.com/4IE3cI

@[1, 2, 3]
@[1, 3]