Skip to content

Commit

Permalink
Add Python to lenient_parse function mapping in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephTLyons committed Nov 12, 2024
1 parent 3cff54e commit dbb5918
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ float and integer values. This package offers more flexible parsing than the
standard Gleam functions, similar to Python's built-in `float()` and `int()`
functions.

- `float("3.14")` -> `"3.14" |> lenient_parse.to_float`
- `int("42")` -> `"42" |> lenient_parse.to_int`
- `int("1010", base=2)` -> `"1010" |> lenient_parse.to_int_with_base(base: 2)`

## Installation

```sh
Expand Down

0 comments on commit dbb5918

Please sign in to comment.