I have a code to find the length of a list that passes a certain criteria. For example, ispos x = x > 0. I need to create another function that uses that function and returns the list of items that are satisfied by that and also is satisfied by they are greater than 10. How do I go about this? Here is my code for counting the list:
count'filter :: (a -> Bool) -> [a] -> Int
count'filter p = length . filter p