Fix crash

This commit is contained in:
Emik 2026-06-15 21:51:54 +02:00
parent 8effb33080
commit 78cdeb0b20
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
2 changed files with 13 additions and 6 deletions

View file

@ -3,7 +3,7 @@
"id": "Roland", "id": "Roland",
"name": "Roland", "name": "Roland",
"prefix": "Roland", "prefix": "Roland",
"version": "2.8.31", "version": "2.8.32",
"badge_colour": "8BE9FD", "badge_colour": "8BE9FD",
"display_name": "Roland", "display_name": "Roland",
"main_file": "src/main.lua", "main_file": "src/main.lua",

View file

@ -249,6 +249,7 @@ function f.new(fnext)
concat = f.concat, concat = f.concat,
const = f.const, const = f.const,
count = f.count, count = f.count,
each = f.each,
eq = f.eq, eq = f.eq,
fals = f.fals, fals = f.fals,
flatmap = f.flatmap, flatmap = f.flatmap,
@ -257,15 +258,12 @@ function f.new(fnext)
id = f.id, id = f.id,
index = f.index, index = f.index,
indices = f.indices, indices = f.indices,
keys = f.keys,
map = f.map, map = f.map,
new = f.new, new = f.new,
next = fnext or f.noop, next = fnext or f.noop,
noop = f.noop, noop = f.noop,
nq = f.nq, nq = f.nq,
tru = f.tru,
where = f.where,
each = f.each,
keys = f.keys,
pun = f.pun, pun = f.pun,
skip = f.skip, skip = f.skip,
slice = f.slice, slice = f.slice,
@ -273,7 +271,9 @@ function f.new(fnext)
swap = f.swap, swap = f.swap,
table = f.table, table = f.table,
take = f.take, take = f.take,
tru = f.tru,
values = f.values, values = f.values,
where = f.where,
} }
end end
@ -766,5 +766,12 @@ function f:each(func)
end end
none = f.new() 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 return ret