Skip to content

Commit 0dcd30c

Browse files
committed
tidy concatenation
1 parent e3f2d56 commit 0dcd30c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

CSharpMath/Structures/Dictionary.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ public LaTeXCommandDictionary(DefaultDelegate defaultParser,
8181

8282
public IEnumerator<KeyValuePair<string, TValue>> GetEnumerator() =>
8383
nonCommands.Select(t => new KeyValuePair<string, TValue>(t.Item1, t.Item2))
84-
.Concat(commands.Select(kvp => new KeyValuePair<string, TValue>(kvp.Key, kvp.Value)))
85-
.GetEnumerator();
84+
.Concat(commands).GetEnumerator();
8685
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
8786

8887
/// <summary>Finds the number of characters corresponding to a LaTeX command at the beginning of chars.</summary>

0 commit comments

Comments
 (0)