Code

From MiniScript Wiki
Revision as of 16:49, 16 March 2020 by 71.226.33.30 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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