2022-01-05 17:06:08 +01:00
|
|
|
## Description:
|
|
|
|
|
2022-01-07 12:28:50 +01:00
|
|
|
`arrays` is a module that provides utility functions to make working with arrays easier.
|
2022-01-05 17:06:08 +01:00
|
|
|
|
2022-01-07 12:28:50 +01:00
|
|
|
## Examples:
|
|
|
|
|
|
|
|
```v
|
|
|
|
import arrays
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
a := [1, 5, 7, 0, 9]
|
2022-05-13 05:56:21 +02:00
|
|
|
assert arrays.min(a)? == 0
|
|
|
|
assert arrays.max(a)? == 9
|
|
|
|
assert arrays.idx_min(a)? == 3
|
2022-01-07 12:28:50 +01:00
|
|
|
}
|
|
|
|
```
|