Created
June 15, 2019 12:03
-
-
Save bhachauk/58acb5425c13fa04c0dd35f2a9a23db3 to your computer and use it in GitHub Desktop.
Using Map in Better Way
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
groovy -e 'a=["a": ["b",1], "c": ["d",2]]; println a.collectEntries{k,v -> ["$k":v[0]]}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment