local dw = _objectWrappers:wrap(_iterables:mutableListOf()) local data = _objectWrappers:wrap(_arrays:arrayOf(_plugins:loadClass("java.lang.String"), "one", nil, "three", "four", nil)) -- 将非空字符串转换为其长度, 非空字符串长度: [3, 5, 4] data:mapNotNullTo(dw, function(it) if (it ~= nil) then return _objectWrappers:wrap(it):count() else return nil end end):forEach(function(it) _console:log(it) end)