v/vlib/arrays
2025-08-13 17:23:44 +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 docs: fix doc comments in arrays too 2025-07-02 17:06:21 +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 docs: fix doc comments in arrays too 2025-07-02 17:06:21 +03:00
map_of.v docs: fix doc comments in arrays too 2025-07-02 17:06:21 +03:00
README.md doc: update trim_doc_node_description, make module readmes more uniform (#20792) 2024-02-12 12:38:47 +02:00
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 arrays: fix off by one error in arrays.uniq_only_repeated/1 and arrays.uniq_all_repeated/1 2023-12-04 15:30:59 +02:00
uniq_test.v arrays: fix off by one error in arrays.uniq_only_repeated/1 and arrays.uniq_all_repeated/1 2023-12-04 15:30:59 +02: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
}