Differences
This shows you the differences between two versions of the page.
fp2024:lab06 [2024/04/10 08:35] pdmatei created |
fp2024:lab06 [2024/04/12 13:57] (current) pdmatei |
||
---|---|---|---|
Line 102: | Line 102: | ||
</code> | </code> | ||
- | **6.2.6.** Write a function which removes **all duplicates** of names under different domains in a list of emails. (e.g. ''["ana@aol.com", "ana@aol.ro", "jim@cx.com", "mary@mail.com" , "mary@mail.ro"]'' will produce: ''[ ["ana@aol.com", "ana@aol.ro"], ["mary@mail.com" , "mary@mail.ro"]]'' | ||
- | <code scala> | ||
- | def extractDuplicates(l: List[Email]): List[List[Email]] = ??? | ||
- | </code> | ||