Skip to content

Commit a9e7f23

Browse files
stdlib-botkgryte
andauthored
docs: update REPL namespace
PR-URL: #1077 Co-authored-by: Athan Reines <kgryte@gmail.com> Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 377ae31 commit a9e7f23

File tree

10 files changed

+29
-14
lines changed

10 files changed

+29
-14
lines changed

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

+4-1
Original file line numberDiff line numberDiff line change
@@ -2352,7 +2352,7 @@ CDC_NCHS_US_BIRTHS_1994_2003,"var data = CDC_NCHS_US_BIRTHS_1994_2003()\n"
23522352
CDC_NCHS_US_INFANT_MORTALITY_BW_1915_2013,"var data = CDC_NCHS_US_INFANT_MORTALITY_BW_1915_2013()\n"
23532353
chdir,"var err = chdir( '/path/to/current/working/directory' )\n"
23542354
chi2gof,"var x = [ 89, 37, 30, 28, 2 ];\nvar p = [ 0.40, 0.20, 0.20, 0.15, 0.05 ];\nvar out = chi2gof( x, p );\nvar o = out.toJSON()\nout.toString()\nvar opts = { 'alpha': 0.01 };\nout = chi2gof( x, p, opts );\nout.toString()\nx = [ 89, 37, 30, 28, 2 ];\np = [ 0.40, 0.20, 0.20, 0.15, 0.05 ];\nopts = { 'simulate': true, 'iterations': 1000 };\nout = chi2gof( x, p, opts );\nout.toString()\nvar lambda = 3.0;\nvar rpois = base.random.poisson.factory( lambda );\nvar len = 400;\nx = [];\nfor ( var i = 0; i < len; i++ ) { x.push( rpois() ); };\nvar freqs = new Int32Array( len );\nfor ( i = 0; i < len; i++ ) { freqs[ x[ i ] ] += 1; };\nout = chi2gof( freqs, 'poisson', lambda );\nout.toString()\n"
2355-
chi2test,"var x = [ [ 20, 30 ], [ 30, 20 ] ];\nvar out = chi2test( x )\nout.print()\nvar opts = { 'alpha': 0.1 };\nout = chi2test( x, opts )\nout.print()\nopts = { 'correct': false };\nout = chi2test( x, opts )\n"
2355+
chi2test,"var x = [ [ 20, 30 ], [ 30, 20 ] ];\nvar out = chi2test( x );\nvar o = out.toJSON()\nout.toString()\nvar opts = { 'alpha': 0.1 };\nout = chi2test( x, opts );\no = out.toJSON()\nout.toString()\nopts = { 'correct': false };\nout = chi2test( x, opts );\nout.toString()\n"
23562356
circarray2iterator,"var it = circarray2iterator( [ 1, 2, 3, 4 ] );\nvar v = it.next().value\nv = it.next().value\n"
23572357
circularArrayStream,"function fcn( chunk ) { console.log( chunk.toString() ); };\nvar opts = { 'iter': 15 };\nvar s = circularArrayStream( [ 1, 2, 3 ], opts );\nvar o = inspectSinkStream( fcn );\ns.pipe( o );\n"
23582358
circularArrayStream.factory,"var opts = { 'objectMode': true, 'highWaterMark': 64 };\nvar createStream = circularArrayStream.factory( opts );\n"
@@ -2664,6 +2664,7 @@ getPrototypeOf,"var proto = getPrototypeOf( {} )\n"
26642664
getuid,"var uid = getuid()\n"
26652665
GLAISHER,"GLAISHER\n"
26662666
graphemeClusters2iterator,"var it = graphemeClusters2iterator( '🌷🍕' );\nvar v = it.next().value\nv = it.next().value\nvar bool = it.next().done\n"
2667+
graphemeClusters2iteratorRight,"var it = graphemeClusters2iteratorRight( '🌷🍕' );\nvar v = it.next().value\nv = it.next().value\nvar bool = it.next().done\n"
26672668
group,"var collection = [ 'beep', 'boop', 'foo', 'bar' ];\nvar groups = [ 'b', 'b', 'f', 'b' ];\nvar out = group( collection, groups )\ngroups = [ 1, 1, 2, 1 ];\nout = group( collection, groups )\ngroups = [ 'b', 'b', 'f', 'b' ];\nvar opts = { 'returns': 'indices' };\nout = group( collection, opts, groups )\nopts = { 'returns': '*' };\nout = group( collection, opts, groups )\n"
26682669
groupBy,"function indicator( v ) {\n if ( v[ 0 ] === 'b' ) {\n return 'b';\n }\n return 'other';\n };\nvar collection = [ 'beep', 'boop', 'foo', 'bar' ];\nvar out = groupBy( collection, indicator )\nvar opts = { 'returns': 'indices' };\nout = groupBy( collection, opts, indicator )\nopts = { 'returns': '*' };\nout = groupBy( collection, opts, indicator )\n"
26692670
groupByAsync,"function indicator( value, index, next ) {\n setTimeout( onTimeout, value );\n function onTimeout() {\n console.log( value );\n next( null, ( index%2 === 0 ) );\n }\n };\nfunction done( error, result ) {\n if ( error ) {\n throw error;\n }\n console.log( result );\n };\nvar arr = [ 3000, 2500, 1000 ];\ngroupByAsync( arr, indicator, done )\nvar opts = { 'returns': 'indices' };\ngroupByAsync( arr, opts, indicator, done )\nopts = { 'returns': '*' };\ngroupByAsync( arr, opts, indicator, done )\nfunction indicator( value, index, next ) {\n setTimeout( onTimeout, value );\n function onTimeout() {\n console.log( value );\n next( null, ( index%2 === 0 ) );\n }\n };\nfunction done( error, result ) {\n if ( error ) {\n throw error;\n }\n console.log( result );\n };\nvar opts = { 'limit': 2 };\nvar arr = [ 3000, 2500, 1000 ];\ngroupByAsync( arr, opts, indicator, done )\nfunction indicator( value, index, next ) {\n setTimeout( onTimeout, value );\n function onTimeout() {\n console.log( value );\n next( null, ( index%2 === 0 ) );\n }\n };\nfunction done( error, result ) {\n if ( error ) {\n throw error;\n }\n console.log( result );\n };\nvar opts = { 'series': true };\nvar arr = [ 3000, 2500, 1000 ];\ngroupByAsync( arr, opts, indicator, done )\n"
@@ -2682,6 +2683,7 @@ hasBigInt64ArraySupport,"var bool = hasBigInt64ArraySupport()\n"
26822683
hasBigIntSupport,"var bool = hasBigIntSupport()\n"
26832684
hasBigUint64ArraySupport,"var bool = hasBigUint64ArraySupport()\n"
26842685
hasClassSupport,"var bool = hasClassSupport()\n"
2686+
hasDataViewSupport,"var bool = hasDataViewSupport()\n"
26852687
hasDefinePropertiesSupport,"var bool = hasDefinePropertiesSupport()\n"
26862688
hasDefinePropertySupport,"var bool = hasDefinePropertySupport()\n"
26872689
hasFloat32ArraySupport,"var bool = hasFloat32ArraySupport()\n"
@@ -3008,6 +3010,7 @@ isASCII,"var str = 'beep boop';\nvar bool = isASCII( str )\nbool = isASCII( from
30083010
isBetween,"var bool = isBetween( 3.14, 3.0, 4.0 )\nbool = isBetween( 3.0, 3.0, 4.0 )\nbool = isBetween( 4.0, 3.0, 4.0 )\nbool = isBetween( 3.0, 3.14, 4.0 )\nbool = isBetween( 3.14, 3.14, 4.0, 'open', 'closed' )\nbool = isBetween( 3.14, 3.0, 3.14, 'closed', 'open' )\n"
30093011
isBetweenArray,"var arr = [ 3.0, 3.14, 4.0 ];\nvar bool = isBetweenArray( arr, 3.0, 4.0 )\nbool = isBetweenArray( arr, 3.14, 4.0 )\nbool = isBetweenArray( arr, 3.0, 3.14 )\nbool = isBetweenArray( arr, 3.0, 4.0, 'open', 'closed' )\nbool = isBetweenArray( arr, 3.0, 4.0, 'closed', 'open' )\n"
30103012
isBigInt,"var bool = isBigInt( BigInt( '1' ) )\nbool = isBigInt( Object( BigInt( '1' ) ) )\nbool = isBigInt( {} )\nbool = isBigInt( null )\nbool = isBigInt( true )\n"
3013+
isBigInt64Array,"var bool = isBigInt64Array( new BigInt64Array( 10 ) )\nbool = isBigInt64Array( [] )\n"
30113014
isBigUint64Array,"var bool = isBigUint64Array( new BigUint64Array( 10 ) )\nbool = isBigUint64Array( [] )\n"
30123015
isBinaryString,"var bool = isBinaryString( '1000101' )\nbool = isBinaryString( 'beep' )\nbool = isBinaryString( '' )\n"
30133016
isBlankString,"var bool = isBlankString( ' ' )\nbool = isBlankString( 'beep' )\nbool = isBlankString( null )\n"

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

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

0 commit comments

Comments
 (0)