diff options
Diffstat (limited to 'library/lullaby')
| -rw-r--r-- | library/lullaby/array.lua (renamed from library/lullaby/sort.lua) | 28 | ||||
| -rw-r--r-- | library/lullaby/io.lua | 7 | ||||
| -rw-r--r-- | library/lullaby/table.lua | 8 |
3 files changed, 22 insertions, 21 deletions
diff --git a/library/lullaby/sort.lua b/library/lullaby/array.lua index c7d9f4d..ebc23af 100644 --- a/library/lullaby/sort.lua +++ b/library/lullaby/array.lua @@ -1,54 +1,56 @@ ---@meta ----@class sort -local sort = {} +---to be rewritten +---@deprecated +---@class lullaby.array +local table = {} ---greatest, least ---@param array number[] -function sort.quicksort(array) end +function table.quicksort(array) end ---greatest, least ---@param array number[] -function sort.mergesort(array) end +function table.mergesort(array) end ---greatest, least ---@param array number[] -function sort.shellsort(array) end +function table.shellsort(array) end ---greatest, least ---@param array number[] -function sort.bubblesort(array) end +function table.bubblesort(array) end ---greatest, least ---@param array number[] -function sort.heapsort(array) end +function table.heapsort(array) end ---least, greatest ---@param array integer[] -function sort.countintsort(array) end +function table.countintsort(array) end ---dont use this lol ---@deprecated ---greatest, least ---@param array number[] -function sort.miraclesort(array) end +function table.miraclesort(array) end ---dont use this lol ---@deprecated ---greatest, least ---@param array number[] -function sort.stalinsort(array) end +function table.stalinsort(array) end ---dont use this lol ---@deprecated ---greatest, least ---@param array number[] -function sort.slowsort(array) end +function table.slowsort(array) end ---dont use this lol ---@deprecated ---greatest, least ---@param array number[] -function sort.bogosort(array) end +function table.bogosort(array) end -return sort +return table diff --git a/library/lullaby/io.lua b/library/lullaby/io.lua index 4fb7768..6e7eb9d 100644 --- a/library/lullaby/io.lua +++ b/library/lullaby/io.lua @@ -1,6 +1,13 @@ ---@meta ---@class io +---@field filemallocchunk integer default chunk size for readfile +---@field print_type integer print the type next to the value +---@field max_depth integer max print depth before collapsing +---@field start_nl_at integer when to start new line while printing +---@field collapse_all integer whether or not to collapse everything +---@field collapse_to_memory integer when collapsing, print memory address +---@field print_meta integer print metatable local io = {} ---print a string with a "pretty" log header diff --git a/library/lullaby/table.lua b/library/lullaby/table.lua deleted file mode 100644 index f02c21e..0000000 --- a/library/lullaby/table.lua +++ /dev/null @@ -1,8 +0,0 @@ ----@meta - ----to be rewritten ----@deprecated ----@class lullaby.table -local table = {} - -return table |
