blob: 0061a33e2242ada707ff1ade0c6707fc35bce8be (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
local fun = require "nvim-lsp-installer.core.functional.function"
local _ = {}
---@param pattern string
---@param str string
_.matches = fun.curryN(function(pattern, str)
return str:match(pattern) ~= nil
end, 2)
---@param template string
---@param string string
_.format = fun.curryN(function(template, string)
return template:format(string)
end, 2)
return _
|