Function number

  • Just like Simple.number where you have to handle negation yourself. The only difference is that you provide all the potential problems.

    See

    Type Parameters

    • A

    • PROBLEM

    Parameters

    • args: {
          binary: Result<((n: number) => A), PROBLEM>;
          expecting: PROBLEM;
          float: Result<((n: number) => A), PROBLEM>;
          hex: Result<((n: number) => A), PROBLEM>;
          int: Result<((n: number) => A), PROBLEM>;
          invalid: PROBLEM;
          octal: Result<((n: number) => A), PROBLEM>;
      }
      • binary: Result<((n: number) => A), PROBLEM>
      • expecting: PROBLEM
      • float: Result<((n: number) => A), PROBLEM>
      • hex: Result<((n: number) => A), PROBLEM>
      • int: Result<((n: number) => A), PROBLEM>
      • invalid: PROBLEM
      • octal: Result<((n: number) => A), PROBLEM>

    Returns Parser.Parser<A, never, PROBLEM>