CHALLENGE

  • Write your own version of Swift’s contains(_:) method on String class namedanotherContains().
  • Your implementation should be an extension on String and ignore letter case.
  • You obviously can’t use any form of the built-in contains(_:) method, but NSString has some really groovy methods for Finding Characters and Substrings like range(of:).

Example: print("Where is WaLdO".anotherContains("WALDO")) should return true.

Here are the overall instructions for code challenges. Before you begin, fork and clone this repo and work through your solution in the included starter playground file. When you're done, Please make sure to save and push all your work, and submit a Pull Request. Don't forget tag your TL so they can review your submission!