diff options
| author | William Boman <william@redwill.se> | 2022-08-15 21:03:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-15 21:03:06 +0200 |
| commit | 3c62386a396ae0c1cd7adbaacc379eb4af072a65 (patch) | |
| tree | 4d00d20958839a04e6a996c11b97724c762e491a /lua/mason-core/functional/init.lua | |
| parent | chore: update generated code (#295) (diff) | |
| download | mason-3c62386a396ae0c1cd7adbaacc379eb4af072a65.tar mason-3c62386a396ae0c1cd7adbaacc379eb4af072a65.tar.gz mason-3c62386a396ae0c1cd7adbaacc379eb4af072a65.tar.bz2 mason-3c62386a396ae0c1cd7adbaacc379eb4af072a65.tar.lz mason-3c62386a396ae0c1cd7adbaacc379eb4af072a65.tar.xz mason-3c62386a396ae0c1cd7adbaacc379eb4af072a65.tar.zst mason-3c62386a396ae0c1cd7adbaacc379eb4af072a65.zip | |
refactor: introduce selene, harden type defs, and use proper EmmyLua syntax (#296)
Diffstat (limited to 'lua/mason-core/functional/init.lua')
| -rw-r--r-- | lua/mason-core/functional/init.lua | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lua/mason-core/functional/init.lua b/lua/mason-core/functional/init.lua index 8d17a572..5d4efdb7 100644 --- a/lua/mason-core/functional/init.lua +++ b/lua/mason-core/functional/init.lua @@ -10,13 +10,13 @@ local function lazy_require(module) }) end --- data +---@module "mason-core.functional.data" local data = lazy_require "mason-core.functional.data" _.table_pack = data.table_pack _.enum = data.enum _.set_of = data.set_of --- function +---@module "mason-core.functional.function" local fun = lazy_require "mason-core.functional.function" _.curryN = fun.curryN _.compose = fun.compose @@ -28,7 +28,7 @@ _.F = fun.F _.memoize = fun.memoize _.lazy = fun.lazy --- list +---@module "mason-core.functional.list" local list = lazy_require "mason-core.functional.list" _.reverse = list.reverse _.list_not_nil = list.list_not_nil @@ -51,13 +51,13 @@ _.sort_by = list.sort_by _.uniq_by = list.uniq_by _.join = list.join --- relation +---@module "mason-core.functional.relation" local relation = lazy_require "mason-core.functional.relation" _.equals = relation.equals _.prop_eq = relation.prop_eq _.prop_satisfies = relation.prop_satisfies --- logic +---@module "mason-core.functional.logic" local logic = lazy_require "mason-core.functional.logic" _.all_pass = logic.all_pass _.any_pass = logic.any_pass @@ -66,7 +66,7 @@ _.is_not = logic.is_not _.complement = logic.complement _.cond = logic.cond --- number +---@module "mason-core.functional.number" local number = lazy_require "mason-core.functional.number" _.negate = number.negate _.gt = number.gt @@ -76,7 +76,7 @@ _.lte = number.lte _.inc = number.inc _.dec = number.dec --- string +---@module "mason-core.functional.string" local string = lazy_require "mason-core.functional.string" _.matches = string.matches _.format = string.format @@ -86,7 +86,7 @@ _.trim = string.trim _.dedent = string.dedent _.starts_with = string.starts_with --- table +---@module "mason-core.functional.table" local tbl = lazy_require "mason-core.functional.table" _.prop = tbl.prop _.pick = tbl.pick @@ -95,7 +95,7 @@ _.size = tbl.size _.to_pairs = tbl.to_pairs _.invert = tbl.invert --- type +---@module "mason-core.functional.type" local typ = lazy_require "mason-core.functional.type" _.is_nil = typ.is_nil _.is = typ.is |
