package main

compare_dyn_arr_string :: proc(a: ^[dynamic]u8, b: string) -> bool {
	if len(a) != len(b) {
		return false
	}
	for c, i in a {
		if c != b[i] {
			return false
		}
	}
	return true
}

compare_dyn_arrs :: proc(a: ^[dynamic]u8, b: ^[dynamic]u8) -> bool {
	if len(a) != len(b) {
		return false
	}
	for c, i in a {
		if c != b[i] {
			return false
		}
	}
	return true
}

get_character_sum_of_dyn_arr :: proc(a: ^[dynamic]u8) -> int {
	sum := 0
	for c in a {
		sum += int(c)
	}
	return sum
}
