Skip to content

Commit 63f9713

Browse files
committed
Add some dox
1 parent 40df929 commit 63f9713

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

std/algorithm/sorting.d

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,15 @@ $(T2 partialSort,
4040
$(D a[0 .. 3] = [1, 2, 3]).
4141
The other elements of $(D a) are left in an unspecified order.)
4242
$(T2 partition,
43-
Partitions a range according to a predicate.)
43+
Partitions a range according to a unary predicate.)
4444
$(T2 partition3,
45-
Partitions a range in three parts (less than, equal, greater than the
46-
given pivot).)
45+
Partitions a range according to a binary predicate in three parts (less
46+
than, equal, greater than the given pivot). Pivot is not given as an
47+
index, but instead as an element independent from the range's content.)
48+
$(T2 pivotPartition,
49+
Partitions a range according to a binary predicate in two parts: less
50+
than or equal, and greater than or equal to the given pivot, passed as
51+
an index in the range.)
4752
$(T2 schwartzSort,
4853
Sorts with the help of the $(LUCKY Schwartzian transform).)
4954
$(T2 sort,

0 commit comments

Comments
 (0)