File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 1+ --- @class PlenaryFun
12local M = {}
23
34M .bind = require (" plenary.functional" ).partial
45
6+ --- @param fn fun ( ... )
7+ --- @param argc integer
8+ --- @return fun ( ... )
59function M .arify (fn , argc )
610 return function (...)
711 if select (" #" , ... ) ~= argc then
@@ -12,6 +16,8 @@ function M.arify(fn, argc)
1216 end
1317end
1418
19+ --- @param map fun ( ... )
20+ --- @return fun ( to_wrap : fun ( ... )): fun ( ... )
1521function M .create_wrapper (map )
1622 return function (to_wrap )
1723 return function (...)
Original file line number Diff line number Diff line change 66--- @field curl PlenaryCurl
77--- @field enum PlenaryEnum
88--- @field filetype PlenaryFiletype
9+ --- @field fun PlenaryFun
910--- @field functional PlenaryFunctional
1011--- @field job PlenaryJob
1112--- @field json PlenaryJson
You can’t perform that action at this time.
0 commit comments