• Applies a given function n times to an initial value

    Parameters

    • n: number

      A non-negative integer

    • pattern: ((a) => Rune)

      Unary function from Rune to Rune

        • (a): Rune
        • Parameters

          • a: Rune

          Returns Rune

    • initial: Rune

      The initial Rune

    Returns Rune

    • Result of n times application of pattern to initial: pattern(pattern(...pattern(pattern(initial))...))