query
On this page

makeExtensibleWithCustomName

lib.makeExtensibleWithCustomName

Docs pulled from | This Revision | 21 minutes ago


Same as makeExtensible but the name of the extending attribute is customized.

Inputs

extenderName

1. Function argument

rattrs

2. Function argument

(lib.fixedPoints.makeExtensibleWithCustomName)

Noogle detected

Aliases

Implementation

The following is the current implementation of this function.

makeExtensibleWithCustomName =
    extenderName: rattrs:
    fix' (
      self:
      (rattrs self)
      // {
        ${extenderName} = f: makeExtensibleWithCustomName extenderName (extends f rattrs);
      }
    );