Implement the following functions in a Scala worksheet:
A document is a list of words. A dictionary is a list of words.Implement:
def spellCheck(doc: List[String], dictionary: List[String]):List[String] = all words in doc not in dictionary
Re-implement spellCheck without using recursion or iteration.I.e., use map, filter, reduce instead.
Expert Answer
An answer will be send to you shortly. . . . .