Code
Revision as of 23:36, 15 March 2020 by ZachStrout (talk | contribs) (Created page with "<c>code</c> Return the Unicode code point of the first character of the given string. This is the inverse of `char`. May be called with function syntax or dot syntax. === A...")
code
Return the Unicode code point of the first character of
the given string. This is the inverse of `char`.
May be called with function syntax or dot syntax.
Arguments
Parameter Name | Default Value | Meaning |
---|---|---|
self | string | string to get the code point of |
Usage Notes
code
may be called either as a global method, passing the string as an argument; or as a member function (defined on string) using dot syntax, with no arguments.
Example
code("*") // returns 42