lib.fixed-points.toExtension: inherit binding

This commit is contained in:
Eman Resu
2026-09-29 22:32:34 -04:00
parent e64ec748f1
commit 3647d89269

View File

@@ -509,13 +509,16 @@ rec {
:::
*/
toExtension =
let
inherit (lib) isFunction;
in
f:
if lib.isFunction f then
if isFunction f then
final: prev:
let
fPrev = f prev;
in
if lib.isFunction fPrev then
if isFunction fPrev then
# f is (final: prev: { ... })
f final prev
else