v/vlib/arrays
2023-10-23 21:21:15 +03:00
..
arrays.v arrays: add arrays.each, arrays.each_indexed, and tests for them 2023-09-27 11:26:05 +03:00
arrays_test.v arrays: add arrays.each, arrays.each_indexed, and tests for them 2023-09-27 11:26:05 +03:00
index_of.v arrays: add map_of_counts/1, map_of_indexes/1 as well as index_of_first/2, index_of_last/2 utilities (#16618) 2022-12-09 00:37:07 +02:00
map_of.v all: fix typos (#19634) 2023-10-23 21:21:15 +03:00
README.md all: change optional to result in most of the libraries (#16123) 2022-10-20 22:14:33 +03:00
uniq.v arrays: add new generic arrays.uniq, arrays.uniq_only, arrays.uniq_only_repeated, arrays.uniq_all_repeated, arrays.distinct 2023-09-01 16:51:51 +03:00
uniq_test.v arrays: add new generic arrays.uniq, arrays.uniq_only, arrays.uniq_only_repeated, arrays.uniq_all_repeated, arrays.distinct 2023-09-01 16:51:51 +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
}