mirror of
https://github.com/dlang/phobos.git
synced 2025-05-06 02:45:12 +03:00
Add new min/maxIndex symbols to booktables
This commit is contained in:
parent
bb3d78fa83
commit
d8c5437d36
2 changed files with 8 additions and 0 deletions
|
@ -37,6 +37,8 @@ $(TR $(TDNW Searching)
|
||||||
$(SUBREF searching, maxCount)
|
$(SUBREF searching, maxCount)
|
||||||
$(SUBREF searching, minElement)
|
$(SUBREF searching, minElement)
|
||||||
$(SUBREF searching, maxElement)
|
$(SUBREF searching, maxElement)
|
||||||
|
$(SUBREF searching, minIndex)
|
||||||
|
$(SUBREF searching, maxIndex)
|
||||||
$(SUBREF searching, minPos)
|
$(SUBREF searching, minPos)
|
||||||
$(SUBREF searching, maxPos)
|
$(SUBREF searching, maxPos)
|
||||||
$(SUBREF searching, skipOver)
|
$(SUBREF searching, skipOver)
|
||||||
|
|
|
@ -63,6 +63,12 @@ $(T2 minElement,
|
||||||
$(T2 maxElement,
|
$(T2 maxElement,
|
||||||
Selects the maximal element of a range.
|
Selects the maximal element of a range.
|
||||||
`maxElement([3, 4, 1, 2])` returns `4`.)
|
`maxElement([3, 4, 1, 2])` returns `4`.)
|
||||||
|
$(T2 minIndex,
|
||||||
|
Index of the minimal element of a range.
|
||||||
|
`minElement([3, 4, 1, 2])` returns `2`.)
|
||||||
|
$(T2 maxIndex,
|
||||||
|
Index of the maximal element of a range.
|
||||||
|
`maxElement([3, 4, 1, 2])` returns `1`.)
|
||||||
$(T2 minPos,
|
$(T2 minPos,
|
||||||
$(D minPos([2, 3, 1, 3, 4, 1])) returns the subrange $(D [1, 3, 4, 1]),
|
$(D minPos([2, 3, 1, 3, 4, 1])) returns the subrange $(D [1, 3, 4, 1]),
|
||||||
i.e., positions the range at the first occurrence of its minimal
|
i.e., positions the range at the first occurrence of its minimal
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue