从 Groovy 列表中删除空项目的最佳方法是什么?
ex: [null, 30, null]
[null, 30, null]
想要返回:[30]
[30]
只需使用减号:
[null, 30, null] - null