stdlib: add first argument labels and some other changes to conform to API guidelines

This commit is contained in:
Dmitri Gribenko
2016-02-12 16:59:15 -08:00
parent a558d13a3b
commit efaa39ea79
132 changed files with 1653 additions and 1592 deletions

View File

@@ -70,7 +70,8 @@ extension Sequence ${"" if preds else "where Iterator.Element : Comparable"} {
@warn_unused_result
public func min(
% if preds:
@noescape isOrderedBefore: (${GElement}, ${GElement}) throws -> Bool
@noescape isOrderedBefore isOrderedBefore:
(${GElement}, ${GElement}) throws -> Bool
% end
) ${rethrows_}-> ${GElement}? {
var it = iterator()
@@ -92,7 +93,8 @@ extension Sequence ${"" if preds else "where Iterator.Element : Comparable"} {
@warn_unused_result
public func max(
% if preds:
@noescape isOrderedBefore: (${GElement}, ${GElement}) throws -> Bool
@noescape isOrderedBefore isOrderedBefore:
(${GElement}, ${GElement}) throws -> Bool
% end
) ${rethrows_}-> ${GElement}? {
var it = iterator()