query
On this page

fix'

lib.fixedPoints.fix'

Docs pulled from | This Revision | about 1 hour 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


Noogle detected

Aliases

Implementation

The following is the current implementation of this function.

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