Add new min/maxIndex symbols to booktables

This commit is contained in:
Sebastian Wilzbach 2016-12-21 10:51:16 +01:00
parent bb3d78fa83
commit d8c5437d36
2 changed files with 8 additions and 0 deletions

View file

@ -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)

View file

@ -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