aboutsummaryrefslogtreecommitdiff
path: root/library/lullaby/array.lua
blob: ebc23af1e5c6665c4c03d4e5da52864766f7fc86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---@meta

---to be rewritten
---@deprecated
---@class lullaby.array
local table = {}

---greatest, least
---@param array number[]
function table.quicksort(array) end

---greatest, least
---@param array number[]
function table.mergesort(array) end

---greatest, least
---@param array number[]
function table.shellsort(array) end

---greatest, least
---@param array number[]
function table.bubblesort(array) end

---greatest, least
---@param array number[]
function table.heapsort(array) end

---least, greatest
---@param array integer[]
function table.countintsort(array) end

---dont use this lol
---@deprecated
---greatest, least
---@param array number[]
function table.miraclesort(array) end

---dont use this lol
---@deprecated
---greatest, least
---@param array number[]
function table.stalinsort(array) end

---dont use this lol
---@deprecated
---greatest, least
---@param array number[]
function table.slowsort(array) end

---dont use this lol
---@deprecated
---greatest, least
---@param array number[]
function table.bogosort(array) end

return table