3 ms·
Set comprehension are more idiomatic here (explicit syntax) though filter/map are not that bad too: {*map(_.author, filter(_.page_count > 1000, books))} I
by d0mine 2y ago
Set comprehension are more idiomatic here (explicit syntax) though filter/map are not that bad too:
{*map(_.author, filter(_.page_count > 1000, books))}
It uses lambdas package.