A completes set function with a naive implementation