Для себя Нужна помощь в написании трёх функций на языке Scala. /* * Function should create an Inverse Index * It should return a Map the words as the key element and a set of tweet ids where the word is contained. */ def createInverseIndex(l: Set[(Long, String)]): Map[String, Set[Long]] = ??? /* * The Functions gets a list of words and returns a set of tweet ids where at least one * of the word occurs * Use the inverse index for calculating the or-Operation. */ def orConjunction(words: List[String], invInd: Map[String, Set[Long]]): Set[Long] = ??? /* * The Functions gets a list of words and returns a set of tweet ids where all of the words occur * Use the inverse index for calculating the and-Operation. */ def andConjunction(words: List[String], invInd: Map[String, Set[Long]]): Set[Long] = ???.