local data = _objectWrappers:wrap(_arrays:arrayOf(_plugins:loadClass("java.lang.String"), "one", nil, "three", "four", nil)) -- 将非空字符串转换为其长度,并添加索引信息, 带索引的非空字符串长度: [0_3, 2_5, 3_4] data:mapIndexedNotNull(function(index, word) if (word ~= nil) then return index .. "_" .. _objectWrappers:wrap(word):count() else return nil end end):forEach(function(it) _console:log(it) end)