Skip to content

Commit 60d2ac3

Browse files
stdlib-botkgryte
andauthored
docs: update REPL namespace documentation
PR-URL: #2608 Co-authored-by: Athan Reines <kgryte@gmail.com> Reviewed-by: Athan Reines <kgryte@gmail.com> Signed-off-by: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com>
1 parent 7c17308 commit 60d2ac3

File tree

10 files changed

+28
-8
lines changed

10 files changed

+28
-8
lines changed

lib/node_modules/@stdlib/repl/code-blocks/data/data.csv

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2571,7 +2571,10 @@ BooleanArray.prototype.byteLength,"var arr = new BooleanArray( 10 )\nvar nbytes
25712571
BooleanArray.prototype.byteOffset,"var arr = new BooleanArray( 10 )\nvar offset = arr.byteOffset\nvar buf = new ArrayBuffer( 240 );\narr = new BooleanArray( buf, 64 )\noffset = arr.byteOffset\n"
25722572
BooleanArray.prototype.BYTES_PER_ELEMENT,"var arr = new BooleanArray( 10 )\narr.BYTES_PER_ELEMENT\n"
25732573
BooleanArray.prototype.length,"var arr = new BooleanArray( 10 )\nvar len = arr.length\n"
2574+
BooleanArray.prototype.at,"var arr = new BooleanArray( [ true, false, false, true ] )\nvar v = arr.at( 1 )\nv = arr.at( -1 )\n"
25742575
BooleanArray.prototype.every,"function predicate( v ) { return v === true; };\nvar arr = new BooleanArray( [ true, true, true ] )\nvar bool = arr.every( predicate )\n"
2576+
BooleanArray.prototype.fill,"var arr = new BooleanArray( 3 )\narr.fill( true );\nvar v = arr.get( 0 )\nv = arr.get( 1 )\nv = arr.get( 2 )\n"
2577+
BooleanArray.prototype.filter,"function predicate( v ) { return ( v === true ); };\nvar arr = new BooleanArray( [ true, false, true ] )\nvar out = arr.filter( predicate )\nvar len = out.length\nvar v = out.get( 0 )\nv = out.get( 1 )\n"
25752578
BooleanArray.prototype.find,"function predicate( v ) { return v === true; };\nvar arr = new BooleanArray( [ true, false, true ] )\nvar v = arr.find( predicate )\n"
25762579
BooleanArray.prototype.findIndex,"function predicate( v ) { return v === true; };\nvar arr = new BooleanArray( [ true, false, true ] )\nvar idx = arr.findIndex( predicate )\n"
25772580
BooleanArray.prototype.findLast,"function predicate( v ) { return v === true; };\nvar arr = new BooleanArray( [ true, false, true ] )\nvar v = arr.findLast( predicate )\n"
@@ -2591,6 +2594,7 @@ BooleanArray.prototype.slice,"var arr = new BooleanArray( [ true, false, true, f
25912594
BooleanArray.prototype.some,"function predicate( v ) { return v === true; };\nvar arr = new BooleanArray( [ false, true, false ] )\nvar bool = arr.some( predicate )\n"
25922595
BooleanArray.prototype.sort,"function compare( a, b ) { return a === true ? -1 : 1; };\nvar arr = new BooleanArray( [ true, false, true ] )\narr.sort( compare );\nvar v = arr.get( 0 )\nv = arr.get( 1 )\nv = arr.get( 2 )\n"
25932596
BooleanArray.prototype.subarray,"var arr = new BooleanArray( [ true, false, true, false, true ] )\nvar out = arr.subarray( 1, 3 )\nvar len = out.length\nvar v = out.get( 0 )\nv = out.get( 1 )\n"
2597+
BooleanArray.prototype.toLocaleString,"var arr = new BooleanArray( [ true, false, true ] )\nvar str = arr.toLocaleString()\n"
25942598
BooleanArray.prototype.toReversed,"var arr = new BooleanArray( [ true, false, false ] )\nvar out = arr.toReversed()\nvar v = out.get( 0 )\nv = out.get( 1 )\nv = out.get( 2 )\n"
25952599
BooleanArray.prototype.toSorted,"function compare( a, b ) { return a === true ? -1 : 1; };\nvar arr = new BooleanArray( [ true, false, true ] )\nvar out = arr.toSorted( compare );\nvar v = out.get( 0 )\nv = out.get( 1 )\nv = out.get( 2 )\n"
25962600
BooleanArray.prototype.toString,"var arr = new BooleanArray( [ true, false, true ] )\nvar str = arr.toString()\n"
@@ -4089,7 +4093,7 @@ ndarray2array,"var arr = array( [ [ 1, 2 ], [ 3, 4 ] ] );\nvar out = ndarray2arr
40894093
ndarrayCastingModes,"var out = ndarrayCastingModes()\n"
40904094
ndarrayDataBuffer,"var opts = { 'dtype': 'float64' };\nvar out = ndarrayDataBuffer( ndzeros( [ 3, 3, 3 ], opts ) )\n"
40914095
ndarrayDataType,"var opts = { 'dtype': 'float64' };\nvar dt = ndarrayDataType( ndzeros( [ 3, 3, 3 ], opts ) )\n"
4092-
ndarrayDataTypes,"var out = ndarrayDataTypes()\nout = ndarrayDataTypes( 'floating_point' )\n"
4096+
ndarrayDataTypes,"var out = ndarrayDataTypes()\nout = ndarrayDataTypes( 'floating_point' )\nout = ndarrayDataTypes( 'floating_point_and_generic' )\n"
40934097
ndarrayDispatch,"var t = [ 'float64', 'float64', 'float32', 'float32' ];\nvar d = [ base.abs, base.absf ];\nvar f = ndarrayDispatch( base.ndarrayUnary, t, d, 2, 1, 1 );\nvar xbuf = new Float64Array( [ -1.0, -2.0, -3.0, -4.0 ] );\nvar x = ndarray( 'float64', xbuf, [ 4 ], [ 1 ], 0, 'row-major' );\nvar ybuf = new Float64Array( [ 0.0, 0.0, 0.0, 0.0 ] );\nvar y = ndarray( 'float64', ybuf, [ 4 ], [ 1 ], 0, 'row-major' );\nf( x, y );\nybuf\n"
40944098
ndarrayFlag,"var out = ndarrayFlag( ndzeros( [ 3, 3, 3 ] ), 'READONLY' )\n"
40954099
ndarrayFlags,"var out = ndarrayFlags( ndzeros( [ 3, 3, 3 ] ) )\n"

lib/node_modules/@stdlib/repl/code-blocks/data/data.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/node_modules/@stdlib/repl/help/data/data.csv

Lines changed: 6 additions & 2 deletions
Large diffs are not rendered by default.

lib/node_modules/@stdlib/repl/help/data/data.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/node_modules/@stdlib/repl/info/data/data.csv

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2571,7 +2571,10 @@ BooleanArray.prototype.byteLength,"\nBooleanArray.prototype.byteLength\n Size
25712571
BooleanArray.prototype.byteOffset,"\nBooleanArray.prototype.byteOffset\n Offset (in bytes) of the array from the start of its underlying\n ArrayBuffer.\n"
25722572
BooleanArray.prototype.BYTES_PER_ELEMENT,"\nBooleanArray.prototype.BYTES_PER_ELEMENT\n Size (in bytes) of each array element.\n"
25732573
BooleanArray.prototype.length,"\nBooleanArray.prototype.length\n The number of array elements.\n"
2574+
BooleanArray.prototype.at,"\nBooleanArray.prototype.at( i:integer )\n Returns an array element located at integer position (index) `i`, with\n support for noth nonnegative and negative integer positions.\n"
25742575
BooleanArray.prototype.every,"\nBooleanArray.prototype.every( predicate:Function[, thisArg:Any] )\n Returns a boolean indicating whether all elements in the array pass a test.\n"
2576+
BooleanArray.prototype.fill,"\nBooleanArray.prototype.fill( value:boolean[, start:integer[, end:integer]] )\n Returns a modified typed array filled with a fill value.\n"
2577+
BooleanArray.prototype.filter,"\nBooleanArray.prototype.filter( predicate:Function[, thisArg:Any] )\n Returns a new array containing the elements of an array which pass a test\n implemented by a predicate function.\n"
25752578
BooleanArray.prototype.find,"\nBooleanArray.prototype.find( predicate:Function[, thisArg:Any] )\n Returns the first element in an array for which a predicate function returns\n a truthy value.\n"
25762579
BooleanArray.prototype.findIndex,"\nBooleanArray.prototype.findIndex( predicate:Function[, thisArg:Any] )\n Returns the index of the first element in an array for which a predicate\n function returns a truthy value.\n"
25772580
BooleanArray.prototype.findLast,"\nBooleanArray.prototype.findLast( predicate:Function[, thisArg:Any] )\n Returns the last element in an array for which a predicate function returns\n a truthy value.\n"
@@ -2591,6 +2594,7 @@ BooleanArray.prototype.slice,"\nBooleanArray.prototype.slice( [start:integer[, e
25912594
BooleanArray.prototype.some,"\nBooleanArray.prototype.some( predicate:Function[, thisArg:Any] )\n Returns a boolean indicating whether at least one element passes a test.\n"
25922595
BooleanArray.prototype.sort,"\nBooleanArray.prototype.sort( [compareFunction:Function] )\n Sorts an array in-place.\n"
25932596
BooleanArray.prototype.subarray,"\nBooleanArray.prototype.subarray( [begin:integer[, end:integer]] )\n Creates a new typed array view over the same underlying `ArrayBuffer` and\n with the same underlying data type as the host array.\n"
2597+
BooleanArray.prototype.toLocaleString,"\nBooleanArray.prototype.toLocaleString( [locales[, options]] )\n Serializes an array as a locale-specific string.\n"
25942598
BooleanArray.prototype.toReversed,"\nBooleanArray.prototype.toReversed()\n Returns a new typed array containing the elements in reversed order.\n"
25952599
BooleanArray.prototype.toSorted,"\nBooleanArray.prototype.toSorted( [compareFunction:Function] )\n Returns a new typed array containing the elements in sorted order.\n"
25962600
BooleanArray.prototype.toString,"\nBooleanArray.prototype.toString()\n Serializes an array as a string.\n"

lib/node_modules/@stdlib/repl/info/data/data.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/node_modules/@stdlib/repl/signature/data/data.csv

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2577,7 +2577,10 @@ BooleanArray.prototype.byteLength,"BooleanArray.prototype.byteLength"
25772577
BooleanArray.prototype.byteOffset,"BooleanArray.prototype.byteOffset"
25782578
BooleanArray.prototype.BYTES_PER_ELEMENT,"BooleanArray.prototype.BYTES_PER_ELEMENT"
25792579
BooleanArray.prototype.length,"BooleanArray.prototype.length"
2580+
BooleanArray.prototype.at,"BooleanArray.prototype.at( i )"
25802581
BooleanArray.prototype.every,"BooleanArray.prototype.every( predicate[, thisArg] )"
2582+
BooleanArray.prototype.fill,"BooleanArray.prototype.fill( value[, start[, end]] )"
2583+
BooleanArray.prototype.filter,"BooleanArray.prototype.filter( predicate[, thisArg] )"
25812584
BooleanArray.prototype.find,"BooleanArray.prototype.find( predicate[, thisArg] )"
25822585
BooleanArray.prototype.findIndex,"BooleanArray.prototype.findIndex( predicate[, thisArg] )"
25832586
BooleanArray.prototype.findLast,"BooleanArray.prototype.findLast( predicate[, thisArg] )"
@@ -2597,6 +2600,7 @@ BooleanArray.prototype.slice,"BooleanArray.prototype.slice( [start[, end]] )"
25972600
BooleanArray.prototype.some,"BooleanArray.prototype.some( predicate[, thisArg] )"
25982601
BooleanArray.prototype.sort,"BooleanArray.prototype.sort( [compareFunction] )"
25992602
BooleanArray.prototype.subarray,"BooleanArray.prototype.subarray( [begin[, end]] )"
2603+
BooleanArray.prototype.toLocaleString,"BooleanArray.prototype.toLocaleString( [locales[, options]] )"
26002604
BooleanArray.prototype.toReversed,"BooleanArray.prototype.toReversed()"
26012605
BooleanArray.prototype.toSorted,"BooleanArray.prototype.toSorted( [compareFunction] )"
26022606
BooleanArray.prototype.toString,"BooleanArray.prototype.toString()"

lib/node_modules/@stdlib/repl/signature/data/data.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/node_modules/@stdlib/repl/typed-signature/data/data.csv

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2577,7 +2577,10 @@ BooleanArray.prototype.byteLength,"BooleanArray.prototype.byteLength"
25772577
BooleanArray.prototype.byteOffset,"BooleanArray.prototype.byteOffset"
25782578
BooleanArray.prototype.BYTES_PER_ELEMENT,"BooleanArray.prototype.BYTES_PER_ELEMENT"
25792579
BooleanArray.prototype.length,"BooleanArray.prototype.length"
2580+
BooleanArray.prototype.at,"BooleanArray.prototype.at( i:integer )"
25802581
BooleanArray.prototype.every,"BooleanArray.prototype.every( predicate:Function[, thisArg:Any] )"
2582+
BooleanArray.prototype.fill,"BooleanArray.prototype.fill( value:boolean[, start:integer[, end:integer]] )"
2583+
BooleanArray.prototype.filter,"BooleanArray.prototype.filter( predicate:Function[, thisArg:Any] )"
25812584
BooleanArray.prototype.find,"BooleanArray.prototype.find( predicate:Function[, thisArg:Any] )"
25822585
BooleanArray.prototype.findIndex,"BooleanArray.prototype.findIndex( predicate:Function[, thisArg:Any] )"
25832586
BooleanArray.prototype.findLast,"BooleanArray.prototype.findLast( predicate:Function[, thisArg:Any] )"
@@ -2597,6 +2600,7 @@ BooleanArray.prototype.slice,"BooleanArray.prototype.slice( [start:integer[, end
25972600
BooleanArray.prototype.some,"BooleanArray.prototype.some( predicate:Function[, thisArg:Any] )"
25982601
BooleanArray.prototype.sort,"BooleanArray.prototype.sort( [compareFunction:Function] )"
25992602
BooleanArray.prototype.subarray,"BooleanArray.prototype.subarray( [begin:integer[, end:integer]] )"
2603+
BooleanArray.prototype.toLocaleString,"BooleanArray.prototype.toLocaleString( [locales[, options]] )"
26002604
BooleanArray.prototype.toReversed,"BooleanArray.prototype.toReversed()"
26012605
BooleanArray.prototype.toSorted,"BooleanArray.prototype.toSorted( [compareFunction:Function] )"
26022606
BooleanArray.prototype.toString,"BooleanArray.prototype.toString()"

lib/node_modules/@stdlib/repl/typed-signature/data/data.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)