v/vlib/arrays
2025-08-13 17:28:59 +03:00
..
diff docs: fix doc comments in arrays too 2025-07-02 17:06:21 +03:00
parallel arrays.parallel: fix v doc -unsafe-run-examples -f none vlib/arrays/parallel/ too 2025-08-13 17:23:44 +03:00
arrays.v arrays: fix v doc -unsafe-run-examples -f none vlib/arrays/ too 2025-08-13 17:28:59 +03:00
arrays_fold_test.v arrays: fix arrays.fold, when the init value in the call, is an array (#21921) 2024-07-24 16:37:20 +03:00
arrays_test.v fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185) 2024-09-10 11:25:56 +03:00
index_of.v arrays: fix v doc -unsafe-run-examples -f none vlib/arrays/ too 2025-08-13 17:28:59 +03:00
map_of.v arrays: fix v doc -unsafe-run-examples -f none vlib/arrays/ too 2025-08-13 17:28:59 +03:00
README.md
reverse_iterator.v docs: fix doc comments in arrays too 2025-07-02 17:06:21 +03:00
reverse_iterator_test.v arrays: add reverse_iterator/1 + tests, allowing for for child in arrays.reverse_iterator(children) { instead of explicit C for style loop; it also avoids allocations (#24755) 2025-06-19 14:46:20 +03:00
uniq.v
uniq_test.v

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
}