bulky-insurance-39338
09/30/2022, 12:32 AMmacro
-feature to ⛵ around that language-cliff i meanbulky-insurance-39338
09/30/2022, 12:39 AMreal
usecode for ? (or also language-exploring often ^^) ?plain-whale-70732
09/30/2022, 12:41 AMArray<T>
which can count the "most frequently occurring member". I.e, if i have var dir = [NORTH, EAST, WEST, EAST, SOUTH, EAST].mostFrequent()
, you get dir = EAST
plain-whale-70732
09/30/2022, 12:42 AMMap
.bulky-insurance-39338
09/30/2022, 12:43 AMplain-whale-70732
09/30/2022, 12:44 AMCountTable<T>
ideaplain-whale-70732
09/30/2022, 12:44 AMbulky-insurance-39338
09/30/2022, 12:45 AM@:generic
also at now [better now than later .. especially into hashlink;])refined-laptop-39041
09/30/2022, 12:45 AMambitious-knife-25690
09/30/2022, 1:02 AMplain-whale-70732
09/30/2022, 1:03 AMplain-whale-70732
09/30/2022, 1:04 AMvar table = new MyTable<Direction, Map<Direction, Int>>();
plain-whale-70732
09/30/2022, 1:04 AMambitious-knife-25690
09/30/2022, 1:05 AMambitious-knife-25690
09/30/2022, 1:06 AMbulky-insurance-39338
09/30/2022, 1:09 AMN S E W NE NW SE SW
plain-whale-70732
09/30/2022, 1:09 AMAND
, and can't be `OR`'dbulky-insurance-39338
09/30/2022, 1:09 AMnorth north west
bulky-insurance-39338
09/30/2022, 1:09 AMbulky-insurance-39338
09/30/2022, 1:10 AMbulky-insurance-39338
09/30/2022, 1:10 AMby
plain-whale-70732
09/30/2022, 1:11 AMTypeDef
which provides a .toMapKey()
function - similar to build int Iterable
. Then you could implement that for all the base types (Int
, EnumValue
, String
)bulky-insurance-39338
09/30/2022, 1:13 AMbulky-insurance-39338
09/30/2022, 1:15 AMmost-whale-66776
09/30/2022, 1:26 AMmost-whale-66776
09/30/2022, 1:27 AM