operator [] method

K? operator [](
  1. T element
)

Implementation

K? operator [](T element) {
  return group.keys.firstOrNull((key) {
    return group[key]?.contains(element) == true;
  });
}