func::[Int]->Bool
func [] = False
func (l:ls) = ff1 (l)
ff1::Int->Bool
ff1 j = j > 0
Currently this code only matches the first value. I tryied using map and all but didn’t get a good result.
My problem is that I need to check if all the values are matching the ff1‘s pattern and if all the ls list elements are true or false, returning a single boolean.
I think you just need
all:Or, if you want, you can do:
which allows you to create a function
f1to do a complex check. In any case, you can useallfor yourfunc