/**
 * The function takes two lists, 'needs' and 'support', containing integers representing the needs and support levels of a group of individuals.
 * It calculates the unmet needs for each individual using list comprehension and subtraction assignment operator, and returns a list of unmet needs.
 *
 * @param needs A list of integers representing the needs of the individuals.
 * @param support A list of integers representing the support levels received by the individuals.
 * @return A list of integers representing the unmet needs of the individuals.
 */
fun calculateUnmetNeeds(needs: List<Int>, support: List<Int>): List<Int> {

    return needs.mapIndexed { index, need -> need - support[index] }
}

// Example usage
/**
 * The function takes two lists, 'needs' and 'support', containing integers representing the needs and support levels of a group of individuals.
 * It calculates the unmet needs for each individual using list comprehension and subtraction assignment operator, and returns a list of unmet needs.
 *
 * @param needs A list of integers representing the needs of the individuals.
 * @param support A list of integers representing the support levels received by the individuals.
 * @return A list of integers representing the unmet needs of the individuals.
 */
fun calculateUnmetNeeds(needs: List<Int>, support: List<Int>): List<Int> {
/**
 * The function takes two lists, 'needs' and 'support', containing integers representing the needs and support levels of a group of individuals.
 * It calculates the unmet needs for each individual using list comprehension and subtraction assignment operator, and returns a list of unmet needs.
 *
 * @param needs A list of integers representing the needs of the individuals.
 * @param support A list of integers representing the support levels received by the individuals.
 * @return A list of integers representing the unmet needs of the individuals.
 */
fun calculateUnmetNeeds(needs: List<Int>, support: List<Int>): List<Int> {

    return needs.mapIndexed { index, need -> need - support[index] }
}

// Example usage