From 628406f0a50e040d4661629446c620a3a495441f Mon Sep 17 00:00:00 2001 From: Rubén Beltrán del Río Date: Thu, 24 Sep 2026 21:01:06 +0200 Subject: Initial commit --- sourcehut-builds/table_utils.luau | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 sourcehut-builds/table_utils.luau (limited to 'sourcehut-builds/table_utils.luau') diff --git a/sourcehut-builds/table_utils.luau b/sourcehut-builds/table_utils.luau new file mode 100644 index 0000000..47feafa --- /dev/null +++ b/sourcehut-builds/table_utils.luau @@ -0,0 +1,11 @@ +return { + trim = function(table: {[number]: T}, count: number): {[number]: T} + local sliced: {[number]: T} = {} + + for i = 1, count or #table, 1 do + sliced[#sliced+1] = table[i] + end + + return sliced + end +} -- cgit