until -package:snap-core -package:free package:classy-prelude

until p f yields the result of applying f until p holds.