What’s new in Swift 4.2?
➕ a new CaseIterable protocol that helps with the enumeration;
➕ new directives #warning (it reminds that part of the code is not implemented to the end) and #error (if you need to cause an error when compiling);
➕ A new method of removing elements from the collections removeAll(where 🙂 (removes elements that match the condition);
➕ The toggle() method to change the state of the Bool type.
These are the main changes in the new version, in addition there are many more changes.