Skip to content

Commit

Permalink
feat: add forEachChar to namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Jul 15, 2023
1 parent b948017 commit 000b507
Show file tree
Hide file tree
Showing 27 changed files with 51 additions and 16 deletions.
1 change: 1 addition & 0 deletions lib/node_modules/@stdlib/namespace/alias2pkg/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -1499,6 +1499,7 @@ FLOAT64_SMALLEST_SUBNORMAL,"@stdlib/constants/float64/smallest-subnormal"
Float64Array,"@stdlib/array/float64"
forEach,"@stdlib/utils/for-each"
forEachAsync,"@stdlib/utils/async/for-each"
forEachChar,"@stdlib/string/for-each"
forEachRight,"@stdlib/utils/for-each-right"
forEachRightAsync,"@stdlib/utils/async/for-each-right"
forIn,"@stdlib/utils/for-in"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1499,6 +1499,7 @@ FLOAT64_SMALLEST_SUBNORMAL,"FLOAT32_SMALLEST_SUBNORMAL,FLOAT64_SMALLEST_NORMAL"
Float64Array,"ArrayBuffer,Float32Array,Int16Array,Int32Array,Int8Array,Uint16Array,Uint32Array,Uint8Array,Uint8ClampedArray"
forEach,"forEachAsync,forEachRight"
forEachAsync,"forEach,forEachRightAsync"
forEachChar,"forEach"
forEachRight,"forEach,forEachRightAsync"
forEachRightAsync,"forEachAsync,forEachRight"
forIn,"forEach,forOwn"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1499,6 +1499,7 @@ FLOAT64_SMALLEST_SUBNORMAL,"@stdlib/constants-float64-smallest-subnormal"
Float64Array,"@stdlib/array-float64"
forEach,"@stdlib/utils-for-each"
forEachAsync,"@stdlib/utils-async-for-each"
forEachChar,"@stdlib/string-for-each"
forEachRight,"@stdlib/utils-for-each-right"
forEachRightAsync,"@stdlib/utils-async-for-each-right"
forIn,"@stdlib/utils-for-in"
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/namespace/aliases/data/data.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/node_modules/@stdlib/namespace/aliases/data/data.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1499,6 +1499,7 @@ FLOAT64_SMALLEST_SUBNORMAL
Float64Array
forEach
forEachAsync
forEachChar
forEachRight
forEachRightAsync
forIn
Expand Down
10 changes: 10 additions & 0 deletions lib/node_modules/@stdlib/namespace/lib/namespace/f.js
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,16 @@ ns.push({
]
});

ns.push({
'alias': 'forEachChar',
'path': '@stdlib/string/for-each',
'value': require( '@stdlib/string/for-each' ),
'type': 'Function',
'related': [
'@stdlib/utils/for-each'
]
});

ns.push({
'alias': 'forEachRight',
'path': '@stdlib/utils/for-each-right',
Expand Down
1 change: 1 addition & 0 deletions lib/node_modules/@stdlib/namespace/pkg2alias/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -1499,6 +1499,7 @@
"@stdlib/array/float64",Float64Array
"@stdlib/utils/for-each",forEach
"@stdlib/utils/async/for-each",forEachAsync
"@stdlib/string/for-each",forEachChar
"@stdlib/utils/for-each-right",forEachRight
"@stdlib/utils/async/for-each-right",forEachRightAsync
"@stdlib/utils/for-in",forIn
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1499,6 +1499,7 @@
"@stdlib/array/float64","@stdlib/array/buffer,@stdlib/array/float32,@stdlib/array/int16,@stdlib/array/int32,@stdlib/array/int8,@stdlib/array/uint16,@stdlib/array/uint32,@stdlib/array/uint8,@stdlib/array/uint8c"
"@stdlib/utils/for-each","@stdlib/utils/async/for-each,@stdlib/utils/for-each-right"
"@stdlib/utils/async/for-each","@stdlib/utils/for-each,@stdlib/utils/async/for-each-right"
"@stdlib/string/for-each","@stdlib/utils/for-each"
"@stdlib/utils/for-each-right","@stdlib/utils/for-each,@stdlib/utils/async/for-each-right"
"@stdlib/utils/async/for-each-right","@stdlib/utils/async/for-each,@stdlib/utils/for-each-right"
"@stdlib/utils/for-in","@stdlib/utils/for-each,@stdlib/utils/for-own"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1499,6 +1499,7 @@
"@stdlib/array/float64","@stdlib/array-float64"
"@stdlib/utils/for-each","@stdlib/utils-for-each"
"@stdlib/utils/async/for-each","@stdlib/utils-async-for-each"
"@stdlib/string/for-each","@stdlib/string-for-each"
"@stdlib/utils/for-each-right","@stdlib/utils-for-each-right"
"@stdlib/utils/async/for-each-right","@stdlib/utils-async-for-each-right"
"@stdlib/utils/for-in","@stdlib/utils-for-in"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1499,6 +1499,7 @@
"@stdlib/array-float64","@stdlib/array/float64"
"@stdlib/utils-for-each","@stdlib/utils/for-each"
"@stdlib/utils-async-for-each","@stdlib/utils/async/for-each"
"@stdlib/string-for-each","@stdlib/string/for-each"
"@stdlib/utils-for-each-right","@stdlib/utils/for-each-right"
"@stdlib/utils-async-for-each-right","@stdlib/utils/async/for-each-right"
"@stdlib/utils-for-in","@stdlib/utils/for-in"
Expand Down

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions lib/node_modules/@stdlib/repl/code-blocks/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,9 @@ base.fibonacci,"var y = base.fibonacci( 0 )\ny = base.fibonacci( 1 )\ny = base.f
base.fibonacciIndex,"var n = base.fibonacciIndex( 2 )\nn = base.fibonacciIndex( 3 )\nn = base.fibonacciIndex( 5 )\nn = base.fibonacciIndex( NaN )\nn = base.fibonacciIndex( 1 )\n"
base.fibpoly,"var v = base.fibpoly( 5, 2.0 )\n"
base.fibpoly.factory,"var polyval = base.fibpoly.factory( 5 );\nvar v = polyval( 1.0 )\nv = polyval( 2.0 )\n"
base.firstCodePoint,"var out = base.firstCodePoint( 'beep', 1 )\nout = base.firstCodePoint( 'Boop', 1 )\nout = base.firstCodePoint( 'foo bar', 5 )\n"
base.firstCodeUnit,"var out = base.firstCodeUnit( 'beep', 1 )\nout = base.firstCodeUnit( 'Boop', 1 )\nout = base.firstCodeUnit( 'foo bar', 5 )\n"
base.firstGraphemeCluster,"var out = base.firstGraphemeCluster( 'beep', 1 )\nout = base.firstGraphemeCluster( 'Boop', 1 )\nout = base.firstGraphemeCluster( 'foo bar', 5 )\n"
base.flipsign,"var z = base.flipsign( -3.0, 10.0 )\nz = base.flipsign( -3.0, -1.0 )\nz = base.flipsign( 1.0, -0.0 )\nz = base.flipsign( -3.0, -0.0 )\nz = base.flipsign( -0.0, 1.0 )\nz = base.flipsign( 0.0, -1.0 )\n"
base.flipsignf,"var z = base.flipsignf( -3.0, 10.0 )\nz = base.flipsignf( -3.0, -1.0 )\nz = base.flipsignf( 1.0, -0.0 )\nz = base.flipsignf( -3.0, -0.0 )\nz = base.flipsignf( -0.0, 1.0 )\nz = base.flipsignf( 0.0, -1.0 )\n"
base.float32ToInt32,"var y = base.float32ToInt32( base.float64ToFloat32( 4294967295.0 ) )\ny = base.float32ToInt32( base.float64ToFloat32( 3.14 ) )\ny = base.float32ToInt32( base.float64ToFloat32( -3.14 ) )\ny = base.float32ToInt32( base.float64ToFloat32( NaN ) )\ny = base.float32ToInt32( FLOAT32_PINF )\ny = base.float32ToInt32( FLOAT32_NINF )\n"
Expand Down Expand Up @@ -2495,6 +2498,7 @@ filledarray,"var arr = filledarray()\narr = filledarray( 'float32' )\nvar arr =
filledarrayBy,"var arr = filledarrayBy()\narr = filledarrayBy( 'float32' )\nfunction clbk() { return 1.0; };\nvar arr = filledarrayBy( 5, clbk )\narr = filledarrayBy( 5, 'int32', clbk )\nvar arr1 = filledarrayBy( [ 0.5, 0.5, 0.5 ], constantFunction( 2.0 ) )\nvar arr2 = filledarrayBy( arr1, 'float32', constantFunction( 1.0 ) )\nvar arr1 = iterConstant( 3.0, {'iter': 3} );\nvar arr2 = filledarrayBy( arr1, 'float32', constantFunction( 1.0 ) )\nvar buf = new ArrayBuffer( 16 );\nvar arr = filledarrayBy( buf, 0, 4, 'float32', constantFunction( 1.0 ) )\n"
filterArguments,"function foo( a, b ) { return [ a, b ]; };\nfunction predicate( v ) { return ( v !== 2 ); };\nvar bar = filterArguments( foo, predicate );\nvar out = bar( 1, 2, 3 )\n"
find,"var data = [ 30, 20, 50, 60, 10 ];\nfunction condition( val ) { return val > 20; };\nvar vals = find( data, condition )\ndata = [ 30, 20, 50, 60, 10 ];\nvar opts = { 'k': 2, 'returns': 'values' };\nvals = find( data, opts, condition )\ndata = [ 30, 20, 50, 60, 10 ];\nopts = { 'k': -2, 'returns': '*' };\nvals = find( data, opts, condition )\n"
firstChar,"var out = firstChar( 'beep' )\nout = firstChar( 'Boop', 1 )\nout = firstChar( 'foo bar', 5 )\n"
FIVETHIRTYEIGHT_FFQ,"var data = FIVETHIRTYEIGHT_FFQ()\n"
flattenArray,"var arr = [ 1, [ 2, [ 3, [ 4, [ 5 ], 6 ], 7 ], 8 ], 9 ];\nvar out = flattenArray( arr )\narr = [ 1, [ 2, [ 3, [ 4, [ 5 ], 6 ], 7 ], 8 ], 9 ];\nout = flattenArray( arr, { 'depth': 2 } )\nvar bool = ( arr[ 1 ][ 1 ][ 1 ] === out[ 3 ] )\narr = [ 1, [ 2, [ 3, [ 4, [ 5 ], 6 ], 7 ], 8 ], 9 ];\nout = flattenArray( arr, { 'depth': 2, 'copy': true } )\nbool = ( arr[ 1 ][ 1 ][ 1 ] === out[ 3 ] )\n"
flattenArray.factory,"var flatten = flattenArray.factory( [ 2, 2 ], {\n 'copy': false\n });\nvar out = flatten( [ [ 1, 2 ], [ 3, 4 ] ] )\nout = flatten( [ [ 5, 6 ], [ 7, 8 ] ] )\n"
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/repl/code-blocks/data/data.json

Large diffs are not rendered by default.

Loading

0 comments on commit 000b507

Please sign in to comment.