I made a map:
def topTen = (1..10).collect { [:].withDefault{[]} }
for (i = 0; i<10; i++) {
topTen[i].put("null", i+1)
}
How can I grab the second part (Value) of an entry in this map and use in a comparison with another (Value) from another entry in another map?
As an alternative to Ray’s answer, if you wanted to compare the first and fourth values, you could do:
Which (obviously) is false, so would throw the assertion error: