mirror of
https://github.com/dlang/phobos.git
synced 2025-05-01 15:40:36 +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, minElement)
|
||||
$(SUBREF searching, maxElement)
|
||||
$(SUBREF searching, minIndex)
|
||||
$(SUBREF searching, maxIndex)
|
||||
$(SUBREF searching, minPos)
|
||||
$(SUBREF searching, maxPos)
|
||||
$(SUBREF searching, skipOver)
|
||||
|
|
|
@ -63,6 +63,12 @@ $(T2 minElement,
|
|||
$(T2 maxElement,
|
||||
Selects the maximal element of a range.
|
||||
`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,
|
||||
$(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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue