Nate Cook
357de38650
Move to equivalency closures instead of Equatable conformance
2021-03-15 13:14:00 -05:00
Nate Cook
4389b24732
Remove configuration option for overlapping
2021-03-15 13:11:34 -05:00
Nate Cook
b33c3881ab
Split out searching from beginning and end
2021-01-07 12:55:45 -06:00
Nate Cook
5ebcf5c666
Add methods for finding subsequences in a collection
2020-11-05 13:58:56 -06: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
Roshan Kumar Sah
66ec96812a
Added documentation and where clause for API uniqued() ( #32 )
2020-10-26 17:12:48 -05:00
Tim Vermeulen
009393dccb
Make RandomSampleTests variables private
2020-10-26 11:36:19 -07:00
Nate Cook
bb3bafeca0
Update changelog for 0.0.2 release
0.0.2
2020-10-23 17:01:38 -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
Nate Cook
8ca636d702
Add inlinability annotations throughout
2020-10-21 15:36:27 -05:00
Nate Cook
115abe1f69
Ignore Package.resolved
2020-10-21 15:36:12 -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
Stephen Canon
a0b7954f80
Use Swift Numerics for elementary functions instead of Darwin/Glibc/etc ( #28 )
...
Also lets us use root instead of exp(log(x)/k), which is more accurate in some cases (but mainly is just nicer to read).
The downside is that this introduces a dependency for Algorithms, where previously it had none. I think that Numerics is an OK thing to depend on (especially for these functions, which are available from 0.0.1), but it _is_ a _massive increase_ in the number of dependencies that the package has, and we should give that some thought.
2020-10-19 16:40:31 -05:00
Stephen Canon
73c4a21563
Add the magic plist file to make xcode render the markdown guides. ( #27 )
2020-10-16 11:52:37 -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
Egor Zhdan
864d460a07
Fix build on Windows ( #13 )
...
log & exp are declared in `ucrt.corecrt.math`
2020-10-12 09:40:25 -05:00
Austin Conlon
3782207b2c
Unitalicize "log" in big O notation ( #17 )
2020-10-12 09:37:07 -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
Sameh Mabrouk
546c8bf7ba
Fix contribution guidelines link in PR templates ( #16 )
2020-10-12 09:28:14 -05:00
Tim Vermeulen
5c5a95db4a
Fix method name in RandomSampling.md ( #18 )
2020-10-12 09:22:41 -05:00
Nate Cook
dd2ad89a1b
Add missing documentation to rotate and reverse
2020-10-09 10:50:16 -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
Ian Keen
cffb44dceb
Update Indexed.swift ( #8 )
2020-10-08 12:48:44 -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
Kyle Macomber
b1dee141cf
Merge pull request #7 from nordicio/patch-1
...
Product.md spelling - Cartestian
2020-10-08 09:55:49 -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
0.0.1
2020-10-07 10:24:43 -05:00