@@ -856,18 +856,15 @@ def upper_bound(array, value, **kwargs):
856
856
857
857
array: OneDimensionalArray
858
858
The array in which the upper bound has to be found.
859
-
860
859
start: int
861
860
The staring index of the portion of the array in which the upper bound
862
861
of a given value has to be looked for.
863
862
Optional, by default 0
864
-
865
863
end: int, optional
866
864
The ending index of the portion of the array in which the upper bound
867
865
of a given value has to be looked for.
868
866
Optional, by default the index
869
867
of the last position filled.
870
-
871
868
comp: lambda/function
872
869
The comparator which is to be used
873
870
for specifying the desired ordering.
@@ -878,7 +875,7 @@ def upper_bound(array, value, **kwargs):
878
875
Returns
879
876
=======
880
877
881
- output : int
878
+ index : int
882
879
Index of the upper bound of the given value in the given OneDimensionalArray.
883
880
884
881
Examples
@@ -926,18 +923,15 @@ def lower_bound(array, value, **kwargs):
926
923
927
924
array: OneDimensionalArray
928
925
The array in which the lower bound has to be found.
929
-
930
926
start: int
931
927
The staring index of the portion of the array in which the upper bound
932
928
of a given value has to be looked for.
933
929
Optional, by default 0
934
-
935
930
end: int, optional
936
931
The ending index of the portion of the array in which the upper bound
937
932
of a given value has to be looked for.
938
933
Optional, by default the index
939
934
of the last position filled.
940
-
941
935
comp: lambda/function
942
936
The comparator which is to be used
943
937
for specifying the desired ordering.
@@ -948,7 +942,7 @@ def lower_bound(array, value, **kwargs):
948
942
Returns
949
943
=======
950
944
951
- output : int
945
+ index : int
952
946
Index of the lower bound of the given value in the given OneDimensionalArray
953
947
954
948
Examples
0 commit comments