Skip to content

Commit b7de083

Browse files
authored
docs: rename variable to be more specific
Signed-off-by: Athan <[email protected]>
1 parent 9ba702f commit b7de083

File tree

1 file changed

+9
-9
lines changed
  • lib/node_modules/@stdlib/blas/ext/base/gfind-last-index/docs/types

1 file changed

+9
-9
lines changed

lib/node_modules/@stdlib/blas/ext/base/gfind-last-index/docs/types/index.d.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ type Quaternary<T, U, V> = ( this: U, value: T, aidx: number, sidx: number, arra
8181
* @param array - input array
8282
* @returns boolean indicating whether an element passes a test
8383
*/
84-
type Callback<T, U, V> = Nullary<U> | Unary<T, U> | Binary<T, U> | Ternary<T, U> | Quaternary<T, U, V>;
84+
type Predicate<T, U, V> = Nullary<U> | Unary<T, U> | Binary<T, U> | Ternary<T, U> | Quaternary<T, U, V>;
8585

8686
/**
8787
* Interface describing `gfindLastIndex`.
@@ -102,8 +102,8 @@ interface Routine {
102102
* @param N - number of indexed elements
103103
* @param x - input array
104104
* @param strideX - stride length
105-
* @param clbk - callback function
106-
* @param thisArg - execution context
105+
* @param clbk - predicate function
106+
* @param thisArg - predicate function execution context
107107
* @returns index
108108
*
109109
* @example
@@ -116,7 +116,7 @@ interface Routine {
116116
* var idx = gfindLastIndex( x.length, x, 1, isEven );
117117
* // returns 5
118118
*/
119-
<T = unknown, U = unknown, V = unknown>( N: number, x: InputArray<V>, strideX: number, clbk: Callback<T, U, V>, thisArg?: ThisParameterType<Callback<T, U, V>> ): number;
119+
<T = unknown, U = unknown, V = unknown>( N: number, x: InputArray<V>, strideX: number, clbk: Predicate<T, U, V>, thisArg?: ThisParameterType<Predicate<T, U, V>> ): number;
120120

121121
/**
122122
* Returns the index of the last element which passes a test implemented by a predicate function using alternative indexing semantics.
@@ -134,8 +134,8 @@ interface Routine {
134134
* @param x - input array
135135
* @param strideX - stride length
136136
* @param offsetX - starting index
137-
* @param clbk - callback function
138-
* @param thisArg - execution context
137+
* @param clbk - predicate function
138+
* @param thisArg - predication function execution context
139139
* @returns index
140140
*
141141
* @example
@@ -148,7 +148,7 @@ interface Routine {
148148
* var idx = gfindLastIndex( x.length, x, 1, 0, isEven );
149149
* // returns 5
150150
*/
151-
ndarray<T = unknown, U = unknown, V = unknown>( N: number, x: InputArray<V>, strideX: number, offsetX: number, clbk: Callback<T, U, V>, thisArg?: ThisParameterType<Callback<T, U, V>> ): number;
151+
ndarray<T = unknown, U = unknown, V = unknown>( N: number, x: InputArray<V>, strideX: number, offsetX: number, clbk: Predicate<T, U, V>, thisArg?: ThisParameterType<Predicate<T, U, V>> ): number;
152152
}
153153

154154
/**
@@ -166,8 +166,8 @@ interface Routine {
166166
* @param N - number of indexed elements
167167
* @param x - input array
168168
* @param strideX - stride length
169-
* @param clbk - callback function
170-
* @param thisArg - execution context
169+
* @param clbk - predicate function
170+
* @param thisArg - predicate function execution context
171171
* @returns index
172172
*
173173
* @example

0 commit comments

Comments
 (0)