time-to-botec/squiggle/node_modules/@stdlib/string/code-point-at/docs/repl.txt
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

34 lines
658 B
Plaintext

{{alias}}( str, idx[, backward] )
Returns a Unicode code point from a string at a specified position.
Parameters
----------
str: string
Input string.
idx: integer
Position.
backward: boolean (optional)
Backward iteration for low surrogates.
Returns
-------
out: integer
Unicode code point.
Examples
--------
> var out = {{alias}}( 'last man standing', 4 )
32
> out = {{alias}}( 'presidential election', 8, true )
116
> out = {{alias}}( 'अनुच्छेद', 2 )
2369
> out = {{alias}}( '🌷', 1, true )
127799
See Also
--------