v/vlib/arrays
playX 4ef7d26133
arrays: add rotate_left and rotate_right (#13388)
2022-02-07 13:20:45 +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: add rotate_left and rotate_right (#13388) 2022-02-07 13:20:45 +02:00
arrays_test.v arrays: add rotate_left and rotate_right (#13388) 2022-02-07 13:20:45 +02: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
}