func TakeInt(n int, list []int) []int {
	if n < 0 {
		return []int{}
	}
	newListLen := len(list)
	if n < newListLen {
		newListLen = n
	}
	newList := make([]int, newListLen)
	for i := 0; i < newListLen; i++ {
		newList[i] = list[i]
	}
	return newList
}
TakeInt returns n items in the list
package fp