@mikuroxina/mini-fn
    Preparing search index...

    Function recurse

    • The Y fixed combinator. It's useful to create a recursive function in one-line. It's also known as anonymous recursion or nameless recursion.

      Type Parameters

      • A
      • R

      Parameters

      • func: (self: (arg: A) => R) => (arg: A) => R

        Which receives the function self and argument A, and returns R.

      Returns (arg: A) => R

      The function which takes argument A and returns R.