Skip to content

Commit 8751c3d

Browse files
stdlib-botkgryte
andauthored
docs: update REPL namespace documentation
PR-URL: #2570 Co-authored-by: Athan Reines <[email protected]> Reviewed-by: Athan Reines <[email protected]> Signed-off-by: stdlib-bot <[email protected]>
1 parent 5a66b4b commit 8751c3d

File tree

10 files changed

+17
-7
lines changed

10 files changed

+17
-7
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -2579,6 +2579,7 @@ BooleanArray.prototype.findLastIndex,"function predicate( v ) { return v === tru
25792579
BooleanArray.prototype.get,"var arr = new BooleanArray( 10 )\narr.set( true, 0 );\nvar v = arr.get( 0 )\n"
25802580
BooleanArray.prototype.includes,"var arr = new BooleanArray( [ true, false, true, true, true ] )\nvar bool = arr.includes( true )\nbool = arr.includes( false, 3 )\n"
25812581
BooleanArray.prototype.indexOf,"var arr = new BooleanArray( [ true, false, true, true, true ] )\nvar idx = arr.indexOf( true )\nidx = arr.indexOf( false, 3 )\n"
2582+
BooleanArray.prototype.join,"var arr = new BooleanArray( [ true, false, true ] )\nvar str = arr.join()\nstr = arr.join( '|' )\n"
25822583
BooleanArray.prototype.lastIndexOf,"var arr = new BooleanArray( [ true, true, true, false, true ] )\nvar idx = arr.lastIndexOf( false )\nidx = arr.lastIndexOf( false, 2 )\n"
25832584
BooleanArray.prototype.map,"function invert( v ) { return !v; };\nvar arr = new BooleanArray( [ true, false, true ] )\nvar out = arr.map( invert )\nvar v = out.get( 0 )\nv = out.get( 1 )\nv = out.get( 2 )\n"
25842585
BooleanArray.prototype.reduce,"function reducer( acc, v ) { return ( acc && v ); };\nvar arr = new BooleanArray( [ true, false, true ] )\nvar out = arr.reduce( reducer )\n"
@@ -2591,6 +2592,7 @@ BooleanArray.prototype.sort,"function compare( a, b ) { return a === true ? -1 :
25912592
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"
25922593
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"
25932594
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"
2595+
BooleanArray.prototype.toString,"var arr = new BooleanArray( [ true, false, true ] )\nvar str = arr.toString()\n"
25942596
broadcastArray,"var x = array( [ [ 1, 2 ], [ 3, 4 ] ] )\nvar sh = x.shape\nvar y = broadcastArray( x, [ 3, 2, 2 ] )\nsh = y.shape\nvar v = y.get( 0, 0, 0 )\nv = y.get( 0, 0, 1 )\nv = y.get( 0, 1, 0 )\nv = y.get( 0, 1, 1 )\nv = y.get( 1, 0, 0 )\nv = y.get( 1, 1, 0 )\nv = y.get( 2, 0, 0 )\nv = y.get( 2, 1, 1 )\n"
25952597
broadcastArrays,"var x = array( [ [ 1, 2 ], [ 3, 4 ] ] )\nvar sh = x.shape\nvar y = ndzeros( [ 3, 2, 2 ] )\nvar out = broadcastArrays( [ x, y ] )\nvar bx = out[ 0 ]\nsh = bx.shape\nvar v = bx.get( 0, 0, 0 )\nv = bx.get( 0, 0, 1 )\nv = bx.get( 0, 1, 0 )\nv = bx.get( 0, 1, 1 )\nv = bx.get( 1, 0, 0 )\nv = bx.get( 1, 1, 0 )\nv = bx.get( 2, 0, 0 )\nv = bx.get( 2, 1, 1 )\n"
25962598
Buffer,"var b = new Buffer( 4 )\nvar b1 = new Buffer( [ 1, 2, 3, 4 ] );\nvar b2 = new Buffer( b1 )\nvar b = new Buffer( [ 1, 2, 3, 4 ] )\nvar b = new Buffer( 'beep boop' )\n"

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

+1-1
Large diffs are not rendered by default.

Diff for: lib/node_modules/@stdlib/repl/help/data/data.csv

+4-2
Large diffs are not rendered by default.

Diff for: lib/node_modules/@stdlib/repl/help/data/data.json

+1-1
Large diffs are not rendered by default.

Diff for: lib/node_modules/@stdlib/repl/info/data/data.csv

+2
Original file line numberDiff line numberDiff line change
@@ -2579,6 +2579,7 @@ BooleanArray.prototype.findLastIndex,"\nBooleanArray.prototype.findLastIndex( pr
25792579
BooleanArray.prototype.get,"\nBooleanArray.prototype.get( i:integer )\n Returns an array element located at integer position (index) `i`.\n"
25802580
BooleanArray.prototype.includes,"\nBooleanArray.prototype.includes( searchElement:boolean[, fromIndex:integer] )\n Returns a boolean indicating whether an array includes a provided value.\n"
25812581
BooleanArray.prototype.indexOf,"\nBooleanArray.prototype.indexOf( searchElement:boolean[, fromIndex:integer] )\n Returns the first index at which a given element can be found.\n"
2582+
BooleanArray.prototype.join,"\nBooleanArray.prototype.join( [separator:string] )\n Returns a new string by concatenating all array elements separated by a\n separator string.\n"
25822583
BooleanArray.prototype.lastIndexOf,"\nBooleanArray.prototype.lastIndexOf( searchElement:boolean[, fromIndex:integer] )\n Returns the last index at which a given element can be found.\n"
25832584
BooleanArray.prototype.map,"\nBooleanArray.prototype.map( clbk:Function[, thisArg:Any] )\n Returns a new array with each element being the result of a provided\n callback function.\n"
25842585
BooleanArray.prototype.reduce,"\nBooleanArray.prototype.reduce( reducerFn:Function[, initialValue:any] )\n Applies a provided function to each element of the array, in order, passing\n in the return value from the calculation on the preceding element and\n returning the accumulated result upon completion.\n"
@@ -2591,6 +2592,7 @@ BooleanArray.prototype.sort,"\nBooleanArray.prototype.sort( [compareFunction:Fun
25912592
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"
25922593
BooleanArray.prototype.toReversed,"\nBooleanArray.prototype.toReversed()\n Returns a new typed array containing the elements in reversed order.\n"
25932594
BooleanArray.prototype.toSorted,"\nBooleanArray.prototype.toSorted( [compareFunction:Function] )\n Returns a new typed array containing the elements in sorted order.\n"
2595+
BooleanArray.prototype.toString,"\nBooleanArray.prototype.toString()\n Serializes an array as a string.\n"
25942596
broadcastArray,"\nbroadcastArray( x:ndarray, shape:ArrayLikeObject )\n Broadcasts an ndarray to a specified shape.\n"
25952597
broadcastArrays,"\nbroadcastArrays( ...arrays:ndarray|ArrayLikeObject<ndarray> )\n Broadcasts ndarrays to a common shape.\n"
25962598
Buffer,"\nBuffer\n\nBuffer( size:integer )\n Allocates a buffer having a specified number of bytes.\n\nBuffer( buffer:Buffer )\n Copies buffer data to a new Buffer instance.\n\nBuffer( array:Array )\n Allocates a buffer using an array of octets.\n\nBuffer( str:string[, encoding:string] )\n Allocates a buffer containing a provided string.\n"

Diff for: lib/node_modules/@stdlib/repl/info/data/data.json

+1-1
Large diffs are not rendered by default.

Diff for: lib/node_modules/@stdlib/repl/signature/data/data.csv

+2
Original file line numberDiff line numberDiff line change
@@ -2585,6 +2585,7 @@ BooleanArray.prototype.findLastIndex,"BooleanArray.prototype.findLastIndex( pred
25852585
BooleanArray.prototype.get,"BooleanArray.prototype.get( i )"
25862586
BooleanArray.prototype.includes,"BooleanArray.prototype.includes( searchElement[, fromIndex] )"
25872587
BooleanArray.prototype.indexOf,"BooleanArray.prototype.indexOf( searchElement[, fromIndex] )"
2588+
BooleanArray.prototype.join,"BooleanArray.prototype.join( [separator] )"
25882589
BooleanArray.prototype.lastIndexOf,"BooleanArray.prototype.lastIndexOf( searchElement[, fromIndex] )"
25892590
BooleanArray.prototype.map,"BooleanArray.prototype.map( clbk[, thisArg] )"
25902591
BooleanArray.prototype.reduce,"BooleanArray.prototype.reduce( reducerFn[, initialValue] )"
@@ -2597,6 +2598,7 @@ BooleanArray.prototype.sort,"BooleanArray.prototype.sort( [compareFunction] )"
25972598
BooleanArray.prototype.subarray,"BooleanArray.prototype.subarray( [begin[, end]] )"
25982599
BooleanArray.prototype.toReversed,"BooleanArray.prototype.toReversed()"
25992600
BooleanArray.prototype.toSorted,"BooleanArray.prototype.toSorted( [compareFunction] )"
2601+
BooleanArray.prototype.toString,"BooleanArray.prototype.toString()"
26002602
broadcastArray,"broadcastArray( x, shape )"
26012603
broadcastArrays,"broadcastArrays( ...arrays )"
26022604
Buffer,"Buffer"

Diff for: lib/node_modules/@stdlib/repl/signature/data/data.json

+1-1
Large diffs are not rendered by default.

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

+2
Original file line numberDiff line numberDiff line change
@@ -2585,6 +2585,7 @@ BooleanArray.prototype.findLastIndex,"BooleanArray.prototype.findLastIndex( pred
25852585
BooleanArray.prototype.get,"BooleanArray.prototype.get( i:integer )"
25862586
BooleanArray.prototype.includes,"BooleanArray.prototype.includes( searchElement:boolean[, fromIndex:integer] )"
25872587
BooleanArray.prototype.indexOf,"BooleanArray.prototype.indexOf( searchElement:boolean[, fromIndex:integer] )"
2588+
BooleanArray.prototype.join,"BooleanArray.prototype.join( [separator:string] )"
25882589
BooleanArray.prototype.lastIndexOf,"BooleanArray.prototype.lastIndexOf( searchElement:boolean[, fromIndex:integer] )"
25892590
BooleanArray.prototype.map,"BooleanArray.prototype.map( clbk:Function[, thisArg:Any] )"
25902591
BooleanArray.prototype.reduce,"BooleanArray.prototype.reduce( reducerFn:Function[, initialValue:any] )"
@@ -2597,6 +2598,7 @@ BooleanArray.prototype.sort,"BooleanArray.prototype.sort( [compareFunction:Funct
25972598
BooleanArray.prototype.subarray,"BooleanArray.prototype.subarray( [begin:integer[, end:integer]] )"
25982599
BooleanArray.prototype.toReversed,"BooleanArray.prototype.toReversed()"
25992600
BooleanArray.prototype.toSorted,"BooleanArray.prototype.toSorted( [compareFunction:Function] )"
2601+
BooleanArray.prototype.toString,"BooleanArray.prototype.toString()"
26002602
broadcastArray,"broadcastArray( x:ndarray, shape:ArrayLikeObject )"
26012603
broadcastArrays,"broadcastArrays( ...arrays:ndarray|ArrayLikeObject<ndarray> )"
26022604
Buffer,"Buffer"

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

+1-1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)