Ayfri
01/11/2022, 6:43 PM.max() and .min() methods have been removed ?Big Chungus
01/11/2022, 6:46 PMBig Chungus
01/11/2022, 6:47 PMephemient
01/11/2022, 6:48 PM• Thethe plan is that, in a future release,andmin()functions have been renamed tomax()andminOrNull()to comply with the naming convention used across the Kotlin collections API. AnmaxOrNull()suffix in the function name means that it returns*OrNullif the receiver collection is empty. The same applies tonull,minBy(),maxBy(),minWith()– in 1.4, they havemaxWith()synonyms.*OrNull()
min() and max() will return with non-null types, but they need to be hidden for at least a whole release cycle first to ensure a safe transitionephemient
01/11/2022, 6:49 PMAyfri
01/11/2022, 6:50 PM