From e5ca09df63983a79cc7b0d274116bcd8c85ca062 Mon Sep 17 00:00:00 2001 From: Emik Date: Mon, 15 Jun 2026 21:51:54 +0200 Subject: [PATCH] Fix crash --- manifest.json | 2 +- src/lib/funky.lua | 17 ++++++++++++----- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/manifest.json b/manifest.json index 003fcf7..2b5af56 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "id": "Roland", "name": "Roland", "prefix": "Roland", - "version": "2.8.31", + "version": "2.8.32", "badge_colour": "8BE9FD", "display_name": "Roland", "main_file": "src/main.lua", diff --git a/src/lib/funky.lua b/src/lib/funky.lua index 5c1a841..a5e20de 100644 --- a/src/lib/funky.lua +++ b/src/lib/funky.lua @@ -249,6 +249,7 @@ function f.new(fnext) concat = f.concat, const = f.const, count = f.count, + each = f.each, eq = f.eq, fals = f.fals, flatmap = f.flatmap, @@ -257,15 +258,12 @@ function f.new(fnext) id = f.id, index = f.index, indices = f.indices, + keys = f.keys, map = f.map, new = f.new, next = fnext or f.noop, noop = f.noop, nq = f.nq, - tru = f.tru, - where = f.where, - each = f.each, - keys = f.keys, pun = f.pun, skip = f.skip, slice = f.slice, @@ -273,7 +271,9 @@ function f.new(fnext) swap = f.swap, table = f.table, take = f.take, + tru = f.tru, values = f.values, + where = f.where, } end @@ -766,5 +766,12 @@ function f:each(func) end none = f.new() -local ret = (setmetatable or f.const(f.from))(f, {__call = f.from}) ---@type F|FFrom + +---@type F|FFrom +local ret = (setmetatable or f.const(f.from))(f, { + __call = function(_, ...) + return f.from(...) + end, +}) + return ret