@nbogie/p5.neill-utils
    Preparing search index...

    Function repeat

    • Call the given function repeatedly, the given number of times.

      Parameters

      • numRepeats: number

        number of times to call the given function

      • fn: (ix: number) => void

        function to call repeatedly. Will be passed the zero-based count of the current iteration

      Returns void

      collect - if you want to collect the returned values from the function instead.