mirror of
https://github.com/sigmasternchen/gleam-community-maths
synced 2025-03-15 07:59:01 +00:00
Fix README example
This commit is contained in:
parent
cbcee32f22
commit
7b3e065103
1 changed files with 2 additions and 2 deletions
|
@ -16,6 +16,7 @@ import gleam_community/maths/elementary
|
|||
import gleam_community/maths/piecewise
|
||||
import gleam_community/maths/predicates
|
||||
import gleam/float
|
||||
import gleam/int
|
||||
|
||||
pub fn main() {
|
||||
// Evaluate the sine function
|
||||
|
@ -31,7 +32,7 @@ pub fn main() {
|
|||
// Returns Tuple: Ok(#(3.0, 50.0))
|
||||
|
||||
// Find the list indices of the smallest value
|
||||
piecewise.arg_minimum([10, 3, 50, 20, 3], float.compare)
|
||||
piecewise.arg_minimum([10, 3, 50, 20, 3], int.compare)
|
||||
// Returns List: Ok([1, 4])
|
||||
|
||||
// Determine if a number is fractional
|
||||
|
@ -46,7 +47,6 @@ pub fn main() {
|
|||
combinatorics.list_combination([1, 2], 1)
|
||||
// Returns List: Ok([[1], [2]])
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
## Installation
|
||||
|
|
Loading…
Reference in a new issue