Dmitri Hrybenko
1519c85340
stdlib: annotate sort() method with @warn_unused_result
...
rdar://20775645
Swift SVN r28869
2015-05-21 06:27:27 +00:00
Dmitri Hrybenko
fe239e3d03
stdlib: de-underscore sort() and partition() methods
...
Swift SVN r28839
2015-05-20 19:34:36 +00:00
Dmitri Hrybenko
53f3ccf850
stdlib: change CollectionType.count() into a property
...
Swift SVN r28829
2015-05-20 09:14:43 +00:00
Dmitri Hrybenko
4a677190eb
stdlib: move partition() to a protocol extension
...
Swift SVN r28816
2015-05-20 03:12:55 +00:00
Arnold Schwaighofer
1cf4974ad7
Remove a noescape and bitcast that were causing extra thunks to hang around
...
We were generating two reabstraction thunks from
(Generator.Element, Generator.Element) -> Bool
back to
(Generator.Element, Generator.Element) -> Bool
for the let bitcast.
rdar://21022339
Swift SVN r28778
2015-05-19 18:51:12 +00:00
Dmitri Hrybenko
47595ee1db
stdlib: change sort() and sorted() into protocol extensions
...
Swift SVN r28736
2015-05-19 01:55:29 +00:00
Dmitri Hrybenko
17cafb6b3a
Revert "stdlib: don't use doc comment markup for non-doc comments"
...
This reverts commit 28724. It contains unintended changes.
Swift SVN r28725
2015-05-18 21:51:53 +00:00
Dmitri Hrybenko
e964eb7384
stdlib: don't use doc comment markup for non-doc comments
...
rdar://problem/20976063
Swift SVN r28724
2015-05-18 21:50:24 +00:00
Dmitri Hrybenko
313701286b
stdlib: Various punctuation and markup improvements to the comments.
...
Patch by Brian Lanier.
Swift SVN r28659
2015-05-16 03:04:51 +00:00
Dmitri Hrybenko
68ef59e37a
stdlib: Convert comments to use '- requires:' instead of 'Requires:'.
...
Tidy misc. comments and markdown along the way.
Patch by Brian Lanier.
Swift SVN r28473
2015-05-12 17:47:11 +00:00
Dave Abrahams
5c55682d8b
[stdlib] Capitalize keywords in doc comments
...
Again, the text is a lot more readable that way.
Swift SVN r28472
2015-05-12 16:59:13 +00:00
Dmitri Hrybenko
4925bda845
stdlib: make 'first' dynamically dispatched so that it can be made fast
...
on Dictionary and Set
Swift SVN r28453
2015-05-12 04:46:26 +00:00
Dmitri Hrybenko
e253881b02
stdlib: protocol extensions: de-underscore indices
...
Swift SVN r28245
2015-05-07 00:30:35 +00:00
Dmitri Hrybenko
f76ca6243e
stdlib: protocol extensions: de-underscore indexOf()
...
Swift SVN r28244
2015-05-07 00:30:33 +00:00
Dmitri Hrybenko
25e74d21db
stdlib: protocol extensions: de-underscore last
...
Swift SVN r28243
2015-05-07 00:30:32 +00:00
Dmitri Hrybenko
d790954154
stdlib: protocol extensions: de-underscore first
...
Swift SVN r28242
2015-05-07 00:30:30 +00:00
Dmitri Hrybenko
e96ade89a9
stdlib: protocol extensions: de-underscore isEmpty
...
Swift SVN r28241
2015-05-07 00:30:29 +00:00
Doug Gregor
2105aa7394
Remove extraneous 'Self.' from constrained extension where clauses.
...
NFC; cleans up the standard library implementation slightly.
Swift SVN r28209
2015-05-06 17:05:29 +00:00
Chris Lattner
31c01eab73
Change the meaning of "if let x = foo()" back to Xcode 6.4 semantics. The compiler
...
includes a number of QoI things to help people write the correct code. I will commit
the testcase for it as the next patch.
The bulk of this patch is moving the stdlib, testsuite and validation testsuite to
the new syntax. I moved a few uses of "as" patterns back to as? expressions in the
stdlib as well.
Swift SVN r27959
2015-04-30 04:38:13 +00:00
Dmitri Hrybenko
4d197dc5b2
Revert "stdlib: change sort() and sorted() into methods"
...
This reverts commits r27885, r27876. It looks like they broke iOS on
arm64.
Swift SVN r27893
2015-04-28 23:58:50 +00:00
Dmitri Hrybenko
b05c372c4f
stdlib: change sort() and sorted() into methods
...
Swift SVN r27876
2015-04-28 18:05:37 +00:00
Dmitri Hrybenko
fd14e70e48
stdlib: rename find() to indexOf() per API review
...
Swift SVN r27849
2015-04-28 00:30:37 +00:00
Dmitri Hrybenko
f6090c1c89
stdlib: make CollectionType._prext_isEmpty dynamically dispatched
...
This change makes isEmpty faster for Dictionary and Set, when invoked
from generic algorithms.
Swift SVN r27736
2015-04-26 00:08:14 +00:00
David Farler
9e28dc777a
Update standard library doc comments to Markdown
...
rdar://problem/20180478
Swift SVN r27726
2015-04-26 00:07:11 +00:00
Dmitri Hrybenko
af38ea1381
stdlib: add MutableCollectionType._prext_partition()
...
Swift SVN r27643
2015-04-23 20:52:00 +00:00
Dmitri Hrybenko
d9848a6c41
stdlib: migrate last() to use a protocol extension
...
Swift SVN r27602
2015-04-22 20:42:04 +00:00
Dmitri Hrybenko
62403ecc23
stdlib: fix up documentation for new methods
...
Swift SVN r27510
2015-04-21 00:15:03 +00:00
Dmitri Hrybenko
02d254047b
stdlib: add a hook for dynamic dispatch in CollectionType.find()
...
This hook allows Set.find() to be equally efficient in static and
generic contexts.
This time, with correct tests.
Swift SVN r27404
2015-04-17 05:03:28 +00:00
Dmitri Hrybenko
e94b0f9b40
Revert "stdlib: add a hook for dynamic dispatch in CollectionType.find()"
...
This reverts commit r27402. It broke tests.
Swift SVN r27403
2015-04-17 04:59:29 +00:00
Dmitri Hrybenko
fe53f87dfc
stdlib: add a hook for dynamic dispatch in CollectionType.find()
...
This allows Set.find() to be equally efficient in static and generic
contexts.
Swift SVN r27402
2015-04-17 04:19:49 +00:00
Dmitri Hrybenko
6e09dad1e6
stdlib: move sequence and collection algorithms to topic-centered files
...
Swift SVN r27273
2015-04-14 07:03:49 +00:00