Well. As far as I have tried it, the current auto completion doesn't really work anyways, aside from the EE I put together, so anything is better than what LDT currently offers.
But what I meant is couldn't you reuse the syntax like this:
Lua Code:
--- @function StringProvider
--- @return #string
local function MyStringProvider()
return ""
end
--- @param #StringProvider
local f = function(stringProvider)
--- @param #number
--- @return #boolean
return function(n)
local s = stringProvider()
return n == s:l
end
end