4 ms·
formatted Scala code by hibikir from above in thread[0]: def topJavaArticle(articles:List[Article]) = articles.find(_.tags.contains("Java")) def javaA
by codygman 12y ago
formatted Scala code by hibikir from above in thread[0]:
def topJavaArticle(articles:List[Article]) = articles.find(_.tags.contains("Java"))
def javaArticles(articles:List[Article]) = articles.filter(_.tags.contains("Java"))
def byAuthor(articles:List[Article) = articles.groupBy(_.author)
0: https://news.ycombinator.com/item?id=8874785 https://news.ycombinator.com/item?id=8874785