Commit Graph

27 Commits

Author SHA1 Message Date
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
Zach Panzarino
e3a4147ac9 Update copyright date 2015-12-31 23:28:40 +00:00
Patrick Pijnappel
4db650d01f De-joined property declarations 2015-12-13 20:08:29 +11:00
Patrick Pijnappel
c86e4a800b Expand tuple properties in Zip2Sequence/Generator
The previous arrangement made the numbering inconsistent, e.g. `baseStreams.1` was of type `Generator2`.
2015-12-13 19:39:14 +11:00
Patrick Pijnappel
95622c435b [stdlib] Replace .Some(x) and .None by x and nil, respectively 2015-12-13 12:10:43 +11:00
Dmitri Gribenko
1808766152 Merge pull request #366 from PatrickPijnappel/patch-2
Fix comment in Zip2
2015-12-12 15:04:33 -08:00
Patrick Pijnappel
92c8cdabe4 [stdlib] Unabbreviate local variable names 2015-12-13 08:43:24 +11:00
Patrick Pijnappel
431b8204c8 [stdlib] Reworded comment 2015-12-11 11:06:21 +11:00
Patrick Pijnappel
230e4a39e6 Merge guards in Zip2Generator
Removes the duplication of the guard body code
2015-12-09 14:03:02 +11:00
Patrick Pijnappel
e7fabae50c Fix comment 2015-12-09 13:56:18 +11:00
Dmitri Hrybenko
82122f9362 stdlib: fixit-based migrations for generic parameter renames
rdar://21538940

Swift SVN r29756
2015-06-27 04:06:27 +00:00
Dmitri Hrybenko
ba208cd672 stdlib: rename zip generator and collection to a common naming convention
// Renamed from `ZipGenerator2`.
  struct Zip2Generator<Generator1 : GeneratorType, Generator2 : GeneratorType> { ... }

  // Renamed from `Zip2`.
  struct Zip2Sequence<Sequence1 : SequenceType, Sequence2 : SequenceType> { ... }

Part of rdar://21429126

Swift SVN r29636
2015-06-24 20:42:03 +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
Chris Lattner
37f5452d15 require -> guard.
Swift SVN r28223
2015-05-06 22:53:38 +00:00
Chris Lattner
079e8b982b move stdlib from let/else to require.
Swift SVN r28098
2015-05-03 21:45:06 +00:00
Dmitri Hrybenko
ea8f2de15a stdlib: use let-else in zip() implementation
Swift SVN r27927
2015-04-29 21:51:47 +00:00
Dmitri Hrybenko
d8c140f228 stdlib/Zip: use more descriptive names for non-API identifiers
Swift SVN r27926
2015-04-29 21:51:44 +00:00
Dmitri Hrybenko
be05690856 Revert "stdlib/Zip: use more descriptive names for non-API identifiers"
This reverts commit r27922.  I didn't update all use sites.

Swift SVN r27924
2015-04-29 21:31:36 +00:00
Dmitri Hrybenko
1551fd01af stdlib/Zip: use more descriptive names for non-API identifiers
Swift SVN r27922
2015-04-29 21:30:02 +00:00
Dmitri Hrybenko
70d728efef stdlib: remove the staged API changes for zip()
API review has reached consensus that zip() reads better as a free
function.

Swift SVN r27921
2015-04-29 21:30:02 +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
Doug Gregor
793b3326af Implement the new rules for argument label defaults.
The rule changes are as follows:
  * All functions (introduced with the 'func' keyword) have argument
  labels for arguments beyond the first, by default. Methods are no
  longer special in this regard.
  * The presence of a default argument no longer implies an argument
  label.

The actual changes to the parser and printer are fairly simple; the
rest of the noise is updating the standard library, overlays, tests,
etc.

With the standard library, this change is intended to be API neutral:
I've added/removed #'s and _'s as appropriate to keep the user
interface the same. If we want to separately consider using argument
labels for more free functions now that the defaults in the language
have shifted, we can tackle that separately.

Fixes rdar://problem/17218256.

Swift SVN r27704
2015-04-24 19:03:30 +00:00
Dmitri Hrybenko
d267b86cb6 stdlib: move the bulk of SequenceType algorithms to protocol extensions
rdar://19895265

Swift SVN r27269
2015-04-14 01:53:19 +00:00
Dmitri Hrybenko
350248dae5 Reorganize the directory structure under 'stdlib'
The standard library has grown significantly, and we need a new
directory structure that clearly reflects the role of the APIs, and
allows future growth.

See stdlib/{public,internal,private}/README.txt for more information.

Swift SVN r25876
2015-03-09 05:26:05 +00:00