Function chompWhile

  • 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 Parser.Parser<Symbol, never, never>

  • Parameters

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

          • char: string

          Returns boolean

    Returns Parser.Parser<Symbol, never, never>