Skip to content

Latest commit

History

History
55 lines (37 loc) 路 906 Bytes

parse.md

File metadata and controls

55 lines (37 loc) 路 906 Bytes
title
Parse

Types

Type declarations included in the Parse module.

Parse.ParseIntError

Added in next No other changes yet.
enum ParseIntError {
  ParseIntEmptyString,
  ParseIntInvalidDigit,
  ParseIntInvalidRadix,
}

Represents an error that occurred trying to parse an integer.

Variants:

ParseIntEmptyString

Represents an error caused by trying to parse an empty string.

ParseIntInvalidDigit

Represents an error caused by trying to parse a string with an invalid character.

ParseIntInvalidRadix

Represents an error caused by trying to parse with an invalid radix.

Values

Functions and constants included in the Parse module.

Parse.parseInt

parseInt : (string: String, radix: Number) => Result<Number, ParseIntError>