michaelglass/proquint/1.1.0

Proquint

Basic usage:

Proquint.fromInt 1234
    |> Maybe.map Proquint.toString


Proquint.fromString "bonam-hohah"
    |> Maybe.map Proquint.toInt

Create

fromInt : Int -> Maybe Proquint

Accepts any int between 0 and 0xFFFFFFFF

fromString : String -> Maybe Proquint

parses proquint-strings to Proquints

minInt : Int

minimum valid int-value of a proquint

maxInt : Int

maximum valid int-value of a proquint

random generator for proquints

Conversion

toInt : Proquint -> Int

returns the int value of the proquint

toString : Proquint -> String

returns the string value of the proquint

Type

Opaque type with a proquint inside