Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
NicklasXYZ committed Sep 17, 2023
1 parent 25ecb73 commit a4eb550
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,27 @@ pub fn main() {
// Find the greatest common divisor
arithmetics.gcd(54, 24)
// Returns Int: 6
// Returns Int: 6
// Find the minimum and maximum of a list
piecewise.extrema([10.0, 3.0, 50.0, 20.0, 3.0], float.compare)
// 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)
// Returns List: Ok([1, 4])
// Returns List: Ok([1, 4])
// Determine if a number is fractional
tests.is_fractional(0.3333)
// Returns Bool: True
// Returns Bool: True
// Determine if 28 is a power of 3
tests.is_power(28, 3)
// Returns Bool: False
// Generate all k = 1 combinations of [1, 2]
combinatorics.list_combination([1, 2], 1)
// Returns: List: Ok([[1], [2]])
// Returns List: Ok([[1], [2]])
}
```
Expand Down

0 comments on commit a4eb550

Please sign in to comment.