Created
March 29, 2019 21:41
-
-
Save wololock/665d07c0b097b772368d3e9d59f4bf04 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def listA = ['ABC', 'DEF', 'GHI', 'JKL', 'MNO', 'PQR'] | |
def listB = [1,2,1,1,1,1] | |
def pairs = [listA, listB].transpose() | |
def map = [:] | |
pairs.each{ map << (it as MapEntry) } | |
println(map) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment