[Haskell-cafe] O(n) algorithm for determining subset