diff options
| author | William Boman <william@redwill.se> | 2022-12-19 11:21:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-19 10:21:24 +0000 |
| commit | 2db93f76da605bccada1be3b020f99b3a67ea791 (patch) | |
| tree | 22e6f8d2e75ab7a4d0ea7a9b316fa8e069608efb /lua/mason-core | |
| parent | Revert "chore: use pwsh instead of powershell (#706)" (#769) (diff) | |
| download | mason-2db93f76da605bccada1be3b020f99b3a67ea791.tar mason-2db93f76da605bccada1be3b020f99b3a67ea791.tar.gz mason-2db93f76da605bccada1be3b020f99b3a67ea791.tar.bz2 mason-2db93f76da605bccada1be3b020f99b3a67ea791.tar.lz mason-2db93f76da605bccada1be3b020f99b3a67ea791.tar.xz mason-2db93f76da605bccada1be3b020f99b3a67ea791.tar.zst mason-2db93f76da605bccada1be3b020f99b3a67ea791.zip | |
fix(functional): spread function args in _.apply (#770)
Diffstat (limited to 'lua/mason-core')
| -rw-r--r-- | lua/mason-core/functional/function.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/mason-core/functional/function.lua b/lua/mason-core/functional/function.lua index 863df28e..59d3af26 100644 --- a/lua/mason-core/functional/function.lua +++ b/lua/mason-core/functional/function.lua @@ -107,7 +107,7 @@ end, 2) ---@param args V[] ---@return R _.apply = _.curryN(function(fn, args) - return fn(args) + return fn(unpack(args)) end, 2) ---@generic T, V |
