View Single Post
11/04/18, 09:33 AM   #5
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,568
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:
  1. --- @function StringProvider
  2. --- @return #string
  3. local function MyStringProvider()
  4.     return ""
  5. end
  6.  
  7. --- @param #StringProvider
  8. local f = function(stringProvider)
  9.     --- @param #number
  10.     --- @return #boolean
  11.     return function(n)
  12.         local s = stringProvider()
  13.         return n == s:l
  14.     end
  15. end

Last edited by sirinsidiator : 11/04/18 at 09:39 AM.
  Reply With Quote