groovy同时迭代多个List

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

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