Skip to content

Commit

Permalink
Move Pair struct to its own file
Browse files Browse the repository at this point in the history
  • Loading branch information
Majiir committed Sep 2, 2014
1 parent 62c4954 commit 4cc5d7b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
13 changes: 0 additions & 13 deletions Plugin/EnumerableExtensions/EnumerableExtensions.cs
Expand Up @@ -5,19 +5,6 @@ namespace Kethane.EnumerableExtensions
{
public static class EnumerableExtensions
{
public struct Pair<T>
{
public T First { get; private set; }
public T Second { get; private set; }

public Pair(T first, T second)
: this()
{
First = first;
Second = second;
}
}

public static IEnumerable<Pair<T>> AdjacentPairs<T>(this IEnumerable<T> sequence)
{
var enumerator = sequence.GetEnumerator();
Expand Down
16 changes: 16 additions & 0 deletions Plugin/EnumerableExtensions/Pair.cs
@@ -0,0 +1,16 @@

namespace Kethane.EnumerableExtensions
{
public struct Pair<T>
{
public T First { get; private set; }
public T Second { get; private set; }

public Pair(T first, T second)
: this()
{
First = first;
Second = second;
}
}
}
1 change: 1 addition & 0 deletions Plugin/Kethane.csproj
Expand Up @@ -48,6 +48,7 @@
<ItemGroup>
<Compile Include="EnumerableExtensions\AppendPrepend.cs" />
<Compile Include="EnumerableExtensions\MinMaxBy.cs" />
<Compile Include="EnumerableExtensions\Pair.cs" />
<Compile Include="EnumerableExtensions\ReverseComparer.cs" />
<Compile Include="GeodesicGrid\BoundsMap.cs" />
<Compile Include="GeodesicGrid\Cell.cs" />
Expand Down

0 comments on commit 4cc5d7b

Please sign in to comment.