query
On this page

fix'

lib.fix'

Docs pulled from | This Revision | 43 minutes ago


A variant of fix that records the original recursive attribute set in the result, in an attribute named __unfix__.

This is useful in combination with the extends function to implement deep overriding.

Inputs

f

1. Function argument

(lib.fixedPoints.fix')

Noogle detected

Aliases

Implementation

The following is the current implementation of this function.

fix' =
    f:
    let
      x = f x // {
        __unfix__ = f;
      };
    in
    x;