Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Foundation
- extension Collection {
- public var nonEmpty: Self? {
- guard !self.isEmpty else {
- return nil
- }
- return self
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement