AutoMovie API
    Preparing search index...
    • The least length in [from, to] where a condition, false before and true after, first holds: a scan of ROOT_SCAN intervals brackets it and bisection closes the bracket, so the answer moves continuously with the inputs (a search stepped to a grid flips with them).

      Parameters

      • holds: RootHolds

        The condition.

      • from: number

        Start of the range.

      • to: number

        End of the range.

      • fallback: number

        The answer when it never holds.

      Returns number