test = [[9], [5, 4], [7, 5, 6], [2]] tlen = map[{|x| length[toArray[x]]}, test] println[tlen] test2 = [ [1,2,3],[4,5,6] ] tlen = mapList[{|x| "x=$x"}, test2] println[tlen] tlen = mapList["sum", test2] println[tlen]