Maxim Moiseev
f462ce7852
Deprecating + and - for SignedInteger and its Stride ( #6603 )
...
* Removing uses of mixed-type + and - in benchmarks
Using type cast or explicit type annotations.
* Deprecating use of + and - on SignedInteger
As it leads to mixed type arithmetics that is not supposed to work.
It was needed before the new collection indexing model to make moving
indexes simple.
* Test deprecation warning
2017-01-11 14:42:27 -08:00
practicalswift
6d1ae2a39c
[gardening] 2016 → 2017
2017-01-06 16:41:22 +01:00
Nate Cook
3bc4909de8
[stdlib] Various revisions and fixes for documentation
...
- Fix wording for RandomAccessCollection
- Add note about array growth to reserveCapacity(_:)
- Reformat lazy flatMap discussions
- Improve Collection symbol consistency
2016-12-15 11:47:19 -06:00
practicalswift
797b80765f
[gardening] Use the correct base URL ( https://swift.org ) in references to the Swift website
...
Remove all references to the old non-TLS enabled base URL (http://swift.org )
2016-11-20 17:36:03 +01:00
airspeedswift
ed5231b47c
Numbered all FIXME(ABI) entries for tracking purposes. ( #4868 )
2016-09-19 16:41:41 -07:00
Dave Abrahams
219daedca4
[stdlib] Add a couple of FIXME(ABI) notes
2016-08-04 11:51:01 -07:00
Patrick Pijnappel
69e6e190cd
[stdlib] Minor refactor of StrideThroughGenerator.next()
2016-07-07 18:39:45 +10:00
Max Moiseev
1cca4ff528
Adding @warn_unqualified_access to Sequence.min/max and Strideable.stride
2016-07-05 16:08:05 -07:00
Xiaodi Wu
6a4da3f92f
Implement floating point strides
...
Add tests for floating point stride
Clarify comment about unreachable endpoint
Add test for floating point stride error accumulation
Restore some formatting
2016-06-07 02:06:09 -05:00
Patrick Pijnappel
daec2dae00
Resolve conflicts with master
2016-05-24 19:21:04 +02:00
Dmitri Gribenko
d591f9cf7a
stdlib: remove most uses of @warn_unused_result, which does nothing now
...
I kept the one on sorted(), because that one requires a less trivial
change.
2016-05-19 18:39:39 -07:00
Patrick Pijnappel
4419614be4
Move post-nil guarantee to separate line for Iterators' next()
2016-05-08 21:36:39 +02:00
Patrick Pijnappel
ab9e74cba3
Resolve conflicts with upstream
2016-05-05 08:55:34 +02:00
Mark Lacey
e03d334b68
Use Builtin.unreachable() in unavailable functions.
...
Saves a bit of code size in the standard library by eliminating some
static strings and function calls.
rdar://problem/25767016
2016-05-02 21:30:25 -07:00
practicalswift
8e3ba900b0
[gardening] Fix recently introduced headers.
2016-05-01 12:59:13 +02:00
Nate Cook
6e274913bf
[stdlib] Revise documentation for Array- and Set-related types.
...
This adds and expands documentation for sequences, collections, and the array
types as well as `Set` and its related protocols.
2016-04-25 12:54:39 -05:00
Dmitri Gribenko
3d4378c86c
stdlib: add ABI fixmes
2016-04-18 17:15:09 -07:00
Nate Cook
f947c7c81c
[New indexing model] Finish documentation revisions
...
- Replaced RandomAccessIndex mentions from Strideable documentation
with stronger guarantees if Stride conforms to Integer.
- Other cleanup and revisions.
2016-04-08 14:04:34 -05:00
Nate Cook
6b77c6a979
[New indexing model] Update documentation comments with new APIs
...
Most of these were successor() -> successor(of:).
2016-04-08 01:01:58 -05:00
Nate Cook
fde926122e
Duplicate _Strideable declarations in Strideable
...
This will make advanced(by:) and distance(to:) visible as
members of Strideable.
2016-04-04 20:11:16 -05:00