Fixed runtime error caused by missing MoreLinq.
This commit is contained in:
1 parent
359897a673
commit
f24373e59a
2 files changed
+6
-7
No files matched your search
@@ -7,7 +7,7 @@
|
||||
<OutputType>Library</OutputType>
|
||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||
<PackageId>Recyclable.Collections.TestData</PackageId>
|
||||
<PackageVersion>0.0.3</PackageVersion>
|
||||
<PackageVersion>0.0.3.1</PackageVersion>
|
||||
<Authors>Marek Lemańczyk</Authors>
|
||||
<Company>N/A</Company>
|
||||
<Product>Recyclable.Collections.TestData</Product>
|
||||
@@ -19,7 +19,7 @@
|
||||
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
|
||||
<PackageReadmeFile>README.md</PackageReadmeFile>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
<PackageReleaseNotes>Custom collection types added to force desired interfaces.</PackageReleaseNotes>
|
||||
<PackageReleaseNotes>Fixed runtime error caused by missing MoreLinq.</PackageReleaseNotes>
|
||||
<Platforms>AnyCPU;x64</Platforms>
|
||||
<PackageIcon>logo.png</PackageIcon>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using MoreLinq;
|
||||
using Open.Numeric.Primes;
|
||||
using Open.Numeric.Primes;
|
||||
using Recyclable.Collections;
|
||||
using System.Numerics;
|
||||
|
||||
@@ -202,9 +201,9 @@ namespace Recyclable.Collections.TestData
|
||||
).ToArray();
|
||||
|
||||
IEnumerable<long> second = Prime.Numbers.StartingAt(7)
|
||||
.TakeUntil(prime =>
|
||||
prime > ((blockSize * 2) - 1) ||
|
||||
prime >= itemsCount
|
||||
.TakeWhile(prime =>
|
||||
prime <= ((blockSize * 2) - 1) &&
|
||||
prime < itemsCount
|
||||
);
|
||||
|
||||
primes = primes.Concat(second).ToArray();
|
||||
|
||||
Reference in new issue
Block a user