func EveryInt64(f func(int64) bool, list []int64) bool {
	if f == nil || len(list) == 0 {
		return false
	}
	for _, v := range list {
		if !f(v) {
			return false
		}
	}
	return true
}
EveryInt64 returns true if supplied function returns logical true for every item in the list

Example:
fp.EveryInt64(even, []int64{8, 2, 10, 4}) // Returns true

func isEven(num int64) bool {
return num%2 == 0
}

fp.EveryInt64(even, []int64{}) // Returns false
fp.EveryInt64(nil, []int64{}) // Returns false
fp.EveryInt64(nil, nil) // Returns false
package fp
func EveryBool(f func() bool, list []bool) bool {
	if f == nil || len(list) == 0 {
		return false
	}
	b := f()
	for _, v := range list {
		if !(b == v) {
			return false
		}
	}
	return true
}
func EveryInt(f func(int) bool, list []int) bool {
	if f == nil || len(list) == 0 {
		return false
	}
	for _, v := range list {
		if !f(v) {
			return false
		}
	}
	return true
}