Functional extension for NSSet