📜  数组删除水晶 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:48.694000             🧑  作者: Mango

代码示例1
a = ["a", "b", "b", "b", "c"]
a.delete("b") # => "b"
a             # => ["a", "c"]

a.delete("x") # => nil
a             # => ["a", "c"]