From 12f733d6f0bcd93acc7a956fb2b164974c27cd81 Mon Sep 17 00:00:00 2001 From: Harald Wolff Date: Thu, 1 Apr 2021 15:45:42 +0200 Subject: [PATCH] Change Version to 0.1.4 --- ln.collections/BTreeValueList.cs | 26 ++++++++++++++------------ ln.collections/ln.collections.csproj | 2 +- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/ln.collections/BTreeValueList.cs b/ln.collections/BTreeValueList.cs index e012cab..f13da40 100644 --- a/ln.collections/BTreeValueList.cs +++ b/ln.collections/BTreeValueList.cs @@ -136,24 +136,26 @@ namespace ln.collections public K First => bTree.First(); public K Last => bTree.Last(); + public bool TryGetNextOrCurrent(K current, out K nextOrEqual) => bTree.TryGetNextOrCurrent(current, out nextOrEqual); + public IEnumerable Keys => bTree.Keys; public IEnumerable Values => bTree.Values.SelectMany(vl => vl); - public IEnumerable> GetKeyValuePairs() - { - foreach (K key in Keys) - { - List lv = bTree[key]; - foreach (V value in lv) - yield return new KeyValuePair(key, value); - } + public IEnumerable> GetKeyValuePairs() + { + foreach (K key in Keys) + { + List lv = bTree[key]; + foreach (V value in lv) + yield return new KeyValuePair(key, value); + } } - public void AddRange(IEnumerable> keyValuePairs) - { - foreach (KeyValuePair keyValuePair in keyValuePairs) - Add(keyValuePair.Key, keyValuePair.Value); + public void AddRange(IEnumerable> keyValuePairs) + { + foreach (KeyValuePair keyValuePair in keyValuePairs) + Add(keyValuePair.Key, keyValuePair.Value); } } } diff --git a/ln.collections/ln.collections.csproj b/ln.collections/ln.collections.csproj index d94984a..fddf1b9 100644 --- a/ln.collections/ln.collections.csproj +++ b/ln.collections/ln.collections.csproj @@ -3,7 +3,7 @@ netcoreapp3.1 true - 0.1.3 + 0.1.4 Harald Wolff-Thobaben l--n.de 0.0.1.1