Atomic sets for Scala