v/vlib/arrays
jeffmikels 5e5d62ed4c
arrays,docs: remove arrays.zip; improve docs (#13082)
2022-01-09 16:12:33 +02:00
..
README.md docs: add more documentation to each of the modules in vlib (#13043) 2022-01-07 13:28:50 +02:00
arrays.v arrays,docs: remove arrays.zip; improve docs (#13082) 2022-01-09 16:12:33 +02:00
arrays_test.v arrays: add binary_search, lower_bound, and upper_bound array operations (#12045) 2021-10-03 08:14:39 +03:00

README.md

Description:

arrays is a module that provides utility functions to make working with arrays easier.

Examples:

import arrays

fn main() {
	a := [1, 5, 7, 0, 9]
	assert arrays.min(a) ? == 0
	assert arrays.max(a) ? == 9
	assert arrays.idx_min(a) ? == 3
}