Nate Cook
993b950250
Run swift-format with default settings
2021-04-15 15:04:29 -05:00
Tim Vermeulen
abc5559ef6
Remove collection conformances to Equatable and Hashable ( #124 )
2021-04-09 14:44:16 -05:00
Karl
9783c1be91
Inline all the things! 🎨 ( #109 )
...
* Make suffix functions inlinable
* Inline all the things!
2021-03-23 15:00:09 -05:00
Oliver Atkinson and Tim Vermeulen
18ec8500b7
Improve the performance of Stride when Base isa Collection ( #88 )
...
* Implement StrideSequence so that the default implementation for collection uses IndexingIterator
* Update Sources/Algorithms/Stride.swift
Co-authored-by: Tim Vermeulen <tvermeulen@apple.com >
* reinstate documentation for Sequence and remove explicit Sequence conformance on Stride
* documentation
* rename Stride to StrideCollection
Co-authored-by: Tim Vermeulen <tvermeulen@apple.com >
2021-03-10 18:20:00 +01:00
Luciano Almeida
914e626e23
Audit public functions and properties that could be inlinable ( #83 )
2021-02-23 11:48:57 -06:00
Nate Cook
638869256a
Add a few missing doc comments.
2020-12-02 16:28:23 -06:00
Oliver Atkinson
dfcc611e1d
consistant negative stride
2020-11-06 15:52:42 +00:00
Oliver Atkinson
3669ff0c11
offsetBackward n is positive and remove init? from Index
2020-11-06 15:33:03 +00:00
Oliver Atkinson
0a6bcc3c68
compute the stride only when the next element is requested
2020-11-06 15:25:34 +00: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
6f7148d966
Implementation of feedback from @timvermeulen
2020-11-06 09:46:06 +00:00
Oliver Atkinson
dcdef508c0
make base and stride internal
2020-11-02 10:02:17 +00:00
Oliver Atkinson
4a194ca811
remove redundant limit
2020-11-01 20:39:18 +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