local numbers = _objectWrappers:wrap(_arrays:arrayOf(_plugins:loadClass("java.lang.Object"), _arrays:arrayOf(_plugins:loadClass("java.lang.Integer"), 1, 2), _arrays:arrayOf(_plugins:loadClass("java.lang.Integer"), 3, 4), _arrays:arrayOf(_plugins:loadClass("java.lang.Integer"), 5, 6))) -- 将嵌套数组展平为单个列表,展平后的列表: [1, 2, 3, 4, 5, 6] numbers:flatMap(function(it) return _arrays:toList(it) end) :forEach(function(it) _console:log(it) end)