Dave Abrahams
11259d1d14
[stdlib] indexing model: rename in-place indexing
...
This time, choose something that's at least compliant with the API
guidelines.
2016-03-23 17:16:20 -07:00
Dave Abrahams
8d9e62b274
[stdlib] indexing model: rename next/previous
...
I'm not too satisfied with the names for the updating: versions, but
this is a start.
2016-03-22 17:13:54 -07:00
Dave Abrahams
0cb009c060
[stdlib] indexing model: Bugfix
...
Thanks, Dmitri!
2016-03-21 13:09:07 -07:00
Dmitri Gribenko
3fee303f36
New indexing model: add an extra constraint on Collection.SubSequence that we can't express now
2016-03-15 20:55:20 -07:00
Dave Abrahams
b946fb5512
[stdlib] indexing model: ExistentialCollection WIP
...
Make AnyXXXCollection conform to the right collection protocols
2016-03-15 12:58:37 -07:00
Dave Abrahams
e85c7a9664
[stdlib] indexing model: ExistentialCollection WIP
...
Implemented the ForwardCollection parts; 17 of 51 tests now pass.
2016-03-14 18:50:09 -07:00
Dmitri Gribenko
3cde854287
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-03-12 01:11:32 -08:00
Daniel Duan
276370b599
[stdlib] apply SE-0040 to stdlib
2016-03-11 16:01:41 -08:00
Dmitri Gribenko
ec1ad6b6c3
New indexing model: add a fixme about a compiler limitation
2016-03-09 14:33:19 -08:00
Dmitri Gribenko
1854d49dc7
New indexing model: AnySequence and AnyCollection API sketch
2016-03-08 00:14:25 -08:00
Dmitri Gribenko
ad1428e1d6
New collection indexing model: removed old index protocols
...
... and started to fix compiler errors.
2016-03-06 01:53:34 -08:00
Shawn Erickson
fe42606062
[stdlib] - WIP moved aspects of ForwardIndex and BidirectionalIndex into their Collection equivalents
2016-03-04 07:40:59 -08:00
Jordan Rose
0205191e32
stdlib: SequenceType._initializeTo(_:) becomes _copyContents(initializing:)
2016-02-23 16:58:49 -08:00
Dmitri Gribenko
f0633ce5a9
stdlib: Sequence.iterator() => .makeIterator()
2016-02-23 13:52:30 -08:00
Max Moiseev
78ba5d5f3f
[stdlib] Requires in comments changed to Precondition
2016-02-19 18:57:26 -08:00
Max Moiseev
40b1a0b7e0
[stdlib] all sorts of require renamed back to precondition
2016-02-19 18:21:29 -08:00
Dmitri Gribenko
dd75aed67a
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-17 14:40:05 -08:00
Dmitri Gribenko
40a31f2da0
stdlib: fix coding style
2016-02-15 23:48:01 -08:00
Dmitri Gribenko
efaa39ea79
stdlib: add first argument labels and some other changes to conform to API guidelines
2016-02-15 23:47:54 -08:00
Nate Cook
355fa4d064
Mark true as code in documentation comments.
2016-02-12 04:21:57 -06:00
Nate Cook
51251dc133
Convert imperative function summaries to present.
...
i.e., "Return ..." -> "Returns ..."
2016-02-12 04:20:39 -06:00
Nate Cook
f3c4e0ac74
Remove style on *generator* and friends.
2016-02-12 04:20:01 -06:00
Max Moiseev
61c837209b
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-04 16:13:39 -08:00
Chris Lattner
0619e57a61
Switch the stdlib to use #file instead of __FILE__, and deprecate the __FILE__ identifiers.
...
This also updates the tests that would otherwise fail.
2016-02-04 15:08:31 -08:00
practicalswift
ca9e488f30
[gardening] Add "-*- swift -*-" to *.swift.gyb. Remove from *.swift.
2016-01-23 10:27:03 +01:00
Adriano Ferreira
e6be43090e
Adjust space in property/subscript declarations
2016-01-22 22:02:29 -05:00
Dmitri Gribenko
9bcd5a1056
Collection.length => .count
2016-01-22 18:41:19 -08:00
Adriano Ferreira
e6cbebe6ea
Revert "Adjust space in property/subscript declarations"
...
This reverts commit 47ab2e0e28 .
2016-01-22 19:53:01 -05:00
Adriano Ferreira
47ab2e0e28
Adjust space in property/subscript declarations
2016-01-22 17:03:15 -05:00
Dmitri Gribenko
574052f1be
stdlib: standardize fatalError() messages for unavailable APIs
2016-01-21 16:34:54 -08:00
Max Moiseev
86680ec622
[stdlib] @available attributes for removed APIs
2016-01-20 13:08:27 -08:00
Doug Gregor
1a38e0ad3b
Merge branch 'master' into swift-3-api-guidelines
2016-01-06 15:32:55 -08:00
Max Moiseev
31f17e212c
[stdlib] using static method dispatch instead of failable casts
...
Overriding `AnySequence.dropFirst` and `AnySequence.prefix` to delegate
these operations to an underlying sequence, thus simplifying default
implementations in `Sequence`.
2016-01-06 13:22:24 -08:00
Max Moiseev
1600c52822
[stdlib] Constraining AnySequence.init
...
... to only allow sequences where SubSequence.SubSequence ==
SubSequence. See swift-evolution proposal
https://github.com/apple/swift-evolution/blob/master/proposals/0014-constrained-AnySequence.md
for more details.
2016-01-06 12:25:09 -08:00
Max Moiseev
f51e708a8f
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-01-04 12:25:25 -08:00
practicalswift
50baf2e53b
Use consistent formatting in top of file headers.
2016-01-04 02:17:48 +01:00
Zach Panzarino
e3a4147ac9
Update copyright date
2015-12-31 23:28:40 +00:00
ken0nek
e7e70cea92
Add spaces before and after closure arrow in stdlib
2015-12-23 04:52:15 +09:00
practicalswift
36d7072013
Remove immediately adjacent repeated words ("the the", "for for", "an an", etc.).
2015-12-21 22:16:04 +01:00
Dmitri Gribenko
69b4a81896
stdlib: re-add 'anyGenerator()' as a deprecated function
...
This is done to restore source compatibility with Swift 2.0.
2015-12-21 11:43:21 -08:00
Max Moiseev
5ccc258f71
func underestimatedLength() => var underestimatedLength { get }
2015-12-18 16:22:24 -08:00
Max Moiseev
b3fcc5fefa
underestimateLength() => underestimatedLength()
2015-12-18 16:22:24 -08:00
Maxim Moiseev
9e50505970
internal or public // @testable initializers
2015-12-17 17:02:49 -08:00
Dmitri Gribenko
9096a960ff
countStrings() => digits() in docs and tests
2015-12-17 16:25:07 -08:00
Dmitri Gribenko
73ce9ae7e9
Collection.count => .length
...
And other API changes that naturally fall out from this, like
Array(repeating:count:) => Array(repeating:length:).
2015-12-17 15:55:29 -08:00
Maxim Moiseev
f2f50d6a9d
precondition => require
2015-12-16 17:16:08 -08:00
Max Moiseev
2021dd5a4d
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2015-12-15 12:49:22 -08:00
Patrick Pijnappel
bbe0e514a2
[stdlib] Fix capitalization
2015-12-13 21:37:44 +11:00
Maxim Moiseev
f6d3e90aa8
IndexBoxType => IndexBoxProtocol
2015-12-10 16:59:50 -08:00
Maxim Moiseev
3910a00a35
AnyCollectionType => AnyCollectionProtocol
2015-12-09 17:17:07 -08:00