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