Function chompWhile1

  • Like chompWhile but requires at least one character to pass the test.

    Type Parameters

    • A

    Parameters

    • isGood: ((char: string, state: A) => [boolean, A])
        • (char: string, state: A): [boolean, A]
        • Parameters

          • char: string
          • state: A

          Returns [boolean, A]

    • init: A

    Returns Simple.Parser<Symbol>

  • Like chompWhile but requires at least one character to pass the test.

    Type Parameters

    • A

    Parameters

    • isGood: ((char: string) => boolean)
        • (char: string): boolean
        • Parameters

          • char: string

          Returns boolean

    Returns Simple.Parser<Symbol>