1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/arrays
2022-08-23 11:12:50 +03:00
..
arrays_test.v fmt: remove space in front of ? and ! (#14366) 2022-05-13 06:56:21 +03:00
arrays.v arrays: move carray_to_varray from builtin, make it generic (#15503) 2022-08-23 11:12:50 +03:00
README.md fmt: remove space in front of ? and ! (#14366) 2022-05-13 06:56:21 +03:00

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
}