local m = _objectWrappers:wrap(_maps:mutableMapOf()) local numbers = _objectWrappers:wrap(_arrays:arrayOf(_plugins:loadClass("java.lang.Integer"), 1, 2, 3, 4, 5)) -- 将数字与其平方关联起来, {1=1, 2=4, 3=9, 4=16, 5=25end) numbers:associateTo(m, function(it) return _maps:pairOf(it, it * it) end) :forEach(function(it) _console:log(it) end)