Automatic Table Display of Simple Data Structures

BeakerX automatically displays Maps and Lists as Tables completely automatically in many circumstances.

In [ ]:
["x" : 1, "y" : 2]
In [ ]:
List list = new ArrayList();
list.add(["x" : 1, "y" : 2]);
list.add(["x" : 3, "y" : 4]);
list
In [ ]:
Map[] map = new Map[2];
map[0] = ["x" : 1, "y" : 2]
map[1] = ["x" : 3, "y" : 4]
map
In [ ]:
def listOfMap = []
1.upto(10){
    listOfMap += ["test": it]
}
listOfMap
In [ ]:
def myMap = [:]
def myList = []
myList << [1, 2, 3]
myList << [2, 3, 4]
myMap.put(1, myList)
myMap
In [ ]:
def myMap = [:]
def myList = [num1:1, num2:2]
myMap.put(1, myList)
myMap