Oliver Atkinson
92b2846345
Add unbounded striding tests to check empty and sequence implementation
2020-11-06 10:42:38 +00:00
Oliver Atkinson
28bbed8776
Add implementation for Sequence iterator
2020-11-06 10:13:29 +00:00
Oliver Atkinson
6f7148d966
Implementation of feedback from @timvermeulen
2020-11-06 09:46:06 +00:00
Oliver Atkinson
6df6133ab7
Refactor to index(_:offsetBy:limitedBy:) and utilise the new test utilities for validateIndexTraversals
2020-11-01 20:30:17 +00:00
Oliver Atkinson
17cb07e38f
Add Stride for Collection
2020-11-01 20:30:10 +00:00
Oliver Atkinson
b28d248cab
Add sliding windows algorithm ( #20 )
2020-10-30 11:39:56 -05:00
Karl
f11d398c98
Add BidirectionalCollection.trimming ( #4 )
2020-10-30 10:44:14 -05:00
Tim Vermeulen
34c0a0b34a
General index consistency tests ( #39 )
...
* Add the `validateIndexTraversals` function
2020-10-30 10:19:23 -05:00
Tim Vermeulen
009393dccb
Make RandomSampleTests variables private
2020-10-26 11:36:19 -07:00
Nate Cook
c582aa9d22
Rename chained(with:) to chain(_:_:) ( #33 )
...
* Rename `chained(with:)` to `chain(_:_:)`
This follows a forum discussion about the `chained(with:)` name.
The old names are preserved as deprecated symbols.
* Remove conditional lazy conformance from `Chain2`
2020-10-23 16:45:51 -05:00
Tim Vermeulen
53354f3f21
Add conditional LazySequenceProtocol conformance ( #29 )
...
* Add conditional LazySequenceProtocol conformance where appropriate
* Add laziness tests
* Mention conditional conformance to LazySequenceProtocol in the guides
2020-10-21 23:58:21 -05:00
Meler Paine
0dba0e5b87
fix stablePartition(subrange:by:) using subrange count instead of entire collection count. ( #30 )
2020-10-20 13:16:12 -05:00
Tim Vermeulen
fb69aacc5d
Fix Product2's indexing logic ( #26 )
...
* Change representation of `Product2`'s `endIndex`
* Fix `Product2.index(before:)`
* Fix `Product2.distance(from:to:)`
* Make comment more specific
2020-10-15 10:41:33 -05:00
Tim Vermeulen
2beda36a49
Fix and improve Chain's index offsetting logic ( #22 )
...
* Add tests
* Fix offsetting logic
* Avoid unnecessary computations
2020-10-13 14:53:47 -05:00
Tim Vermeulen
c67dd3419c
Implement distance(from:to:) for Chain ( #3 )
...
* Add Chain.distance(from:to:)
* Add test
2020-10-12 09:36:13 -05:00
Nate Cook
1df76cfaa4
Rename rotate(at:) to rotate(toStartAt:)
...
This was the intended name for the rotate method, just missed in
the initial release.
2020-10-09 10:50:16 -05:00
Nate Cook
6cffd04a4f
Initial import
2020-10-07 10:24:43 -05:00