Maybe `.toSeq.distinct.take(limit)` then?