On Sunday, 30 May 2021 at 12:16:19 UTC, realhet wrote: > presets.keys.sort.take(1).get(0); <----- Oups: after fixing an error and making it compile the solution is even uglier: presets.keys.sort.take(1).array.get(0);