You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
280 B

package correct
func IsPositive(value int) bool {
return value > 0
}
func IsNegative0(value int) bool {
return value < 0
}
func Map(f func(int) bool, arr []int) []bool {
arrBool := make([]bool, len(arr))
for i, el := range arr {
arrBool[i] = f(el)
}
return arrBool
}