Difference between revisions of "Code"

From MiniScript Wiki
Jump to navigation Jump to search
(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...")
 
 
Line 1: Line 1:
 
<c>code</c> Return the Unicode code point of the first character of
 
<c>code</c> Return the Unicode code point of the first character of
the given string.  This is the inverse of `char`.
+
the given string.  This is the inverse of [[char]].
 
May be called with function syntax or dot syntax.
 
May be called with function syntax or dot syntax.
  

Latest revision as of 16:49, 16 March 2020

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