We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
class Anagram(word:String) { def matches(words:Seq[String]):Seq[String] = { val lowerWord = word.toLowerCase words.filterNot(_.toLowerCase == lowerWord).filter(_.toLowerCase.sorted==lowerWord.sorted) } }