concept lookupIP in category haskell

appears as: lookupIP, lookupIP
Haskell in Depth

This is an excerpt from Manning's book Haskell in Depth.

Let’s also formulate two properties for the lookupIP predicate (a function returning Bool):

We also need an environment to benchmark the lookupIP function.

simulate iprdb ips = (yes, no)
  where
    yes = length $ filter id $ map (lookupIP iprdb) ips
    no = length ips - yes