Groovy web console

subscribe to the feed Subscribe
to this
site
matrix (via #groovywebconsole)
tweet this snippet Tweet
this
script

matrix

Published 8 months ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
println "matrix shit"

def lista = [
["1.1","1.2","1.3"],
["2.1","2.2","2.3"],
["3.1","3.2","3.3"],
["4.1","4.2","4.3"]
]


def listb = GroovyCollections.transpose(lista)


println lista
println listb