Skip to content

Commit cfb39e4

Browse files
stdlib-botkgryte
andauthored
docs: update REPL namespace documentation
PR-URL: #2475 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 d1ef4ee commit cfb39e4

File tree

10 files changed

+16
-6
lines changed

10 files changed

+16
-6
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2583,8 +2583,10 @@ BooleanArray.prototype.lastIndexOf,"var arr = new BooleanArray( [ true, true, tr
25832583
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"
25842584
BooleanArray.prototype.reverse,"var arr = new BooleanArray( [ true, false, false ] )\narr.reverse();\nvar v = arr.get( 0 )\nv = arr.get( 1 )\nv = arr.get( 2 )\n"
25852585
BooleanArray.prototype.set,"var arr = new BooleanArray( 2 )\narr.set( false );\nvar v = arr.get( 0 )\narr.set( true, 1 );\nv = arr.get( 1 )\n"
2586+
BooleanArray.prototype.slice,"var arr = new BooleanArray( [ true, false, true, false, true ] )\nvar out = arr.slice( 1 )\nvar len = out.length\nvar v = out.get( 0 )\nv = out.get( 1 )\n"
25862587
BooleanArray.prototype.some,"function predicate( v ) { return v === true; };\nvar arr = new BooleanArray( [ false, true, false ] )\nvar bool = arr.some( predicate )\n"
25872588
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"
2589+
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"
25882590
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"
25892591
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"
25902592
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"

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: 3 additions & 1 deletion
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2583,8 +2583,10 @@ BooleanArray.prototype.lastIndexOf,"\nBooleanArray.prototype.lastIndexOf( search
25832583
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"
25842584
BooleanArray.prototype.reverse,"\nBooleanArray.prototype.reverse()\n Reverses the array *in-place*.\n"
25852585
BooleanArray.prototype.set,"\nBooleanArray.prototype.set( v:bool|BooleanArray|ArrayLikeObject[, i:integer] )\n Sets one or more array elements.\n"
2586+
BooleanArray.prototype.slice,"\nBooleanArray.prototype.slice( [start:integer[, end:integer]] )\n Copies a portion of a typed array to a new typed array.\n"
25862587
BooleanArray.prototype.some,"\nBooleanArray.prototype.some( predicate:Function[, thisArg:Any] )\n Returns a boolean indicating whether at least one element passes a test.\n"
25872588
BooleanArray.prototype.sort,"\nBooleanArray.prototype.sort( [compareFunction:Function] )\n Sorts an array in-place.\n"
2589+
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"
25882590
BooleanArray.prototype.toReversed,"\nBooleanArray.prototype.toReversed()\n Returns a new typed array containing the elements in reversed order.\n"
25892591
BooleanArray.prototype.toSorted,"\nBooleanArray.prototype.toSorted( [compareFunction:Function] )\n Returns a new typed array containing the elements in sorted order.\n"
25902592
broadcastArray,"\nbroadcastArray( x:ndarray, shape:ArrayLikeObject )\n Broadcasts an ndarray to a specified shape.\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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2589,8 +2589,10 @@ BooleanArray.prototype.lastIndexOf,"BooleanArray.prototype.lastIndexOf( searchEl
25892589
BooleanArray.prototype.map,"BooleanArray.prototype.map( clbk[, thisArg] )"
25902590
BooleanArray.prototype.reverse,"BooleanArray.prototype.reverse()"
25912591
BooleanArray.prototype.set,"BooleanArray.prototype.set( v[, i] )"
2592+
BooleanArray.prototype.slice,"BooleanArray.prototype.slice( [start[, end]] )"
25922593
BooleanArray.prototype.some,"BooleanArray.prototype.some( predicate[, thisArg] )"
25932594
BooleanArray.prototype.sort,"BooleanArray.prototype.sort( [compareFunction] )"
2595+
BooleanArray.prototype.subarray,"BooleanArray.prototype.subarray( [begin[, end]] )"
25942596
BooleanArray.prototype.toReversed,"BooleanArray.prototype.toReversed()"
25952597
BooleanArray.prototype.toSorted,"BooleanArray.prototype.toSorted( [compareFunction] )"
25962598
broadcastArray,"broadcastArray( x, shape )"

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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2589,8 +2589,10 @@ BooleanArray.prototype.lastIndexOf,"BooleanArray.prototype.lastIndexOf( searchEl
25892589
BooleanArray.prototype.map,"BooleanArray.prototype.map( clbk:Function[, thisArg:Any] )"
25902590
BooleanArray.prototype.reverse,"BooleanArray.prototype.reverse()"
25912591
BooleanArray.prototype.set,"BooleanArray.prototype.set( v:bool|BooleanArray|ArrayLikeObject[, i:integer] )"
2592+
BooleanArray.prototype.slice,"BooleanArray.prototype.slice( [start:integer[, end:integer]] )"
25922593
BooleanArray.prototype.some,"BooleanArray.prototype.some( predicate:Function[, thisArg:Any] )"
25932594
BooleanArray.prototype.sort,"BooleanArray.prototype.sort( [compareFunction:Function] )"
2595+
BooleanArray.prototype.subarray,"BooleanArray.prototype.subarray( [begin:integer[, end:integer]] )"
25942596
BooleanArray.prototype.toReversed,"BooleanArray.prototype.toReversed()"
25952597
BooleanArray.prototype.toSorted,"BooleanArray.prototype.toSorted( [compareFunction:Function] )"
25962598
broadcastArray,"broadcastArray( x:ndarray, shape:ArrayLikeObject )"

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)