Commit Graph
24 Commits
Author SHA1 Message Date
Nate Cook 9836a4f80b [Chunked] Add chunks(of:) variant that divides a collection in chunks of a given size (#54) 2021-01-15 22:43:13 -06:00
Matt Zanchelli 5b7993ca8d All combinations (#51)
Add an overload of combinations(ofCount:) that accepts a range.
2021-01-14 13:32:47 -06:00
Luciano Almeida 3092eb1304 [Chucked] Add chunks(ofCount:) information on the Chunked guides 2021-01-08 00:09:07 -03:00
Rafael Machado 3864606e00 Add "sortedPrefix(_:by)" to Collection (#9) 2020-12-04 10:20:28 -06:00
Nate Cook ff01a02c07 Add Stride for Collection (#24) 2020-12-01 17:54:00 -06:00
Daniel Tull 93c8724c72 Add conformances to LazySequenceProtocol and LazyCollectionProtocol (#47)
* Conform Intersperse to LazySequenceProtocol when the base sequence does

* Add conformance to LazyCollectionProtocol

* Conform Indexed to LazyCollectionProtocol when Base conforms

* Rename XCTAssertLazy to XCTAssertLazySequence

* Add XCTAssertLazyCollection

* Add lazy test for Intersperse

* Update Indexed guide

* Add lazy conformances to SlidingWindows

* Update SlidingWindows guide
2020-12-01 15:47:13 -06:00
Daniel Tull fd189aa078 Add interspersed(with:) (#35) 2020-11-09 09:44:23 -06:00
Oliver Atkinson 377bb72f0a small documentation tweek collection -> sequence 2020-11-06 10:31:40 +00:00
Oliver Atkinson 28bbed8776 Add implementation for Sequence iterator 2020-11-06 10:13:29 +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
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
Austin Conlon 3782207b2c Unitalicize "log" in big O notation (#17) 2020-10-12 09:37:07 -05:00
Tim Vermeulen 5c5a95db4a Fix method name in RandomSampling.md (#18) 2020-10-12 09:22:41 -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
Austin Conlon 7188edf9c0 Fix mistake where perm was used in example instead of combo (#10) 2020-10-09 09:38:52 -05:00
Nate Cook 60d653f008 Fix misspelling in the guides 2020-10-08 18:36:48 -05:00
Kyle Macomber af3eab4fb5 Merge pull request #5 from karwa/index-doc
Fix documentation for Indexed
2020-10-08 09:57:06 -07:00
Andreas Jönsson cb028ba72a Product.md spelling - Cartestian
Cartesian
2020-10-08 16:36:44 +02:00
Karl a8902448b9 Fix documentation for Indexed 2020-10-08 10:46:31 +02:00
Kenny 7ab0a2014d Fix Test URLs AlgorithmsTests -> SwiftAlgorithmsTests (#1) 2020-10-07 22:05:14 -05:00
Nate Cook 6cffd04a4f Initial import 2020-10-07 10:24:43 -05:00