groovy同时迭代多个List
- 作者: 举破天
- 来源: 51数据库
- 2022-08-17
def list1 = [1, 2, 3]
def list2 = [4, 5, 6]
def result = true
list1.eachWithIndex { n, i ->
if (n >= list2[i]) result = false
}
assert result
推荐阅读
