anykeywords are not new in Swift. The
somekeyword was introduced in Swift 5.1 whereas the
anykeyword was introduced in Swift 5.6. In Swift 5.7, Apple makes another great improvement on both of these keywords. We can now use both of these keywords in the function’s parameter position!
Source: Understanding the "some" and "any" keywords in Swift 5.7, an article by Lee Kah Seng.