aboutsummaryrefslogtreecommitdiff
path: root/src/table.h
diff options
context:
space:
mode:
authorame <[email protected]>2026-05-27 06:00:43 -0500
committerame <[email protected]>2026-05-27 06:00:43 -0500
commit6f176096b8f3a2088c01d67a36e4b67750ec179e (patch)
tree78a195e1b743f56380e164177c5b1393126ed7d7 /src/table.h
parent0addb6ba5b45168b7abe2ff0db6ddcfff20d1865 (diff)
.table updates, .dup & .equal
Diffstat (limited to 'src/table.h')
-rw-r--r--src/table.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/table.h b/src/table.h
index 6d872c3..b114cd2 100644
--- a/src/table.h
+++ b/src/table.h
@@ -9,8 +9,8 @@ uint64_t i_len(lua_State*,int);
int l_len(lua_State*); //[double+int] -> i
int l_reverse(lua_State*); //[double+int] -> arr[N]
-int l_greatest(lua_State*); //[double+int] -> i
-int l_least(lua_State*); //[double+int] -> i
+int l_max(lua_State*); //[double+int] -> i
+int l_min(lua_State*); //[double+int] -> i
int l_shuffle(lua_State*); //[double+int] -> arr[N]
int l_sum(lua_State*); //[double+int] -> i
@@ -21,35 +21,35 @@ int l_to_char_array(lua_State*);
int l_unpack(lua_State*);
int l_split(lua_State*);
+int l_equal(lua_State*);
+int l_dup(lua_State*);
#define clean_lullaby_table luaI_nothing
+
+#warning "docs needed here"
static const luaL_Reg table_function_list [] = {
{"len",l_len},
- {"reverse",l_reverse},
- {"greatest",l_greatest},
- {"least",l_least},
- {"shuffle",l_shuffle},
- {"sum",l_sum},
+ {"reverse",l_reverse}, //no docs
+ {"max",l_max}, //no docs
+ {"min",l_min}, //no docs
+ {"shuffle",l_shuffle}, //no docs
+ {"sum",l_sum}, //no docs
{"split",l_split},
- {"to_char_array", l_to_char_array},
+ {"to_char_array", l_to_char_array}, //no docs
- {"index",l_indexof},
- {"sindex",l_sindexof},
+ {"index",l_indexof}, //no docs
+ {"sindex",l_sindexof}, //no docs
+ //updates these and the functions
{"quicksort",l_quicksort},
{"mergesort",l_mergesort},
{"shellsort",l_shellsort},
{"bubblesort",l_bubblesort},
{"heapsort",l_heapsort},
- {"countingsort",l_countingsort},
-
- {"miraclesort",l_miraclesort},
- {"stalinsort",l_stalinsort},
- {"slowsort",l_slowsort},
- {"bogosort",l_bogosort},
-
- {"unpack", l_unpack},
+ {"unpack", l_unpack}, //no docs
+ {"equal", l_equal},
+ {"dup", l_dup},
{NULL,NULL}
};