package table

import (
	
)

// btoi converts a boolean to an integer, 1 if true, 0 if false.
func ( bool) int {
	if  {
		return 1
	}
	return 0
}

// bton converts a boolean to a specific integer, n if true, 0 if false.
func ( bool,  int) int {
	if  {
		return 
	}
	return 0
}

// sum returns the sum of all integers in a slice.
func ( []int) int {
	var  int
	for ,  := range  {
		 += 
	}
	return 
}

// median returns the median of a slice of integers.
func ( []int) int {
	sort.Ints()

	if len() <= 0 {
		return 0
	}
	if len()%2 == 0 {
		 := len() / 2            //nolint:mnd
		return ([-1] + []) / 2 //nolint:mnd
	}
	return [len()/2]
}