// SPDX-FileCopyrightText: 2023 Paul Schaub // // SPDX-License-Identifier: Apache-2.0 package openpgp /** * Filter `null` values from a [Map], turning it into a [Map]. */ @Suppress("UNCHECKED_CAST") fun Map.filterNotNullValues(): Map = filterValues { it != null } as Map