From 974894692b425154aa85189e714edccc39bfe37e Mon Sep 17 00:00:00 2001 From: eonist <30n1st@gmail.com> Date: Wed, 9 Aug 2023 18:45:29 +0200 Subject: [PATCH] Update Dict+Ext.swift --- Sources/Telemetry/ext/Dict+Ext.swift | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Sources/Telemetry/ext/Dict+Ext.swift b/Sources/Telemetry/ext/Dict+Ext.swift index 21a34ab..1e0e124 100644 --- a/Sources/Telemetry/ext/Dict+Ext.swift +++ b/Sources/Telemetry/ext/Dict+Ext.swift @@ -2,9 +2,11 @@ import Foundation extension Dictionary { /** - * - Fixme: ⚠️️ add doc - * - Parameter other: - Fixme: ⚠️️ add doc - * - Returns: - Fixme: ⚠️️ add doc + * - Fixme: ⚠️️ Add doc + * - Fixme: ⚠️️ We could also use reduce like shown here: https://stackoverflow.com/a/75548503/5389500 + * - Fixme: ⚠️️ We can even add it to a + operator like: `func + (a: Self, b: Self) -> Self {...}` + * - Parameter other: - Fixme: ⚠️️ Add doc + * - Returns: - Fixme: ⚠️️ Add doc */ func combinedWith(_ other: [Key: Value]) -> [Key: Value] { var dict = self