"var x = " x ";" *newline*
"return (typeof(" x ") == \"string\") && x.length == 1;")))
-(define-builtin char-to-string (x)
- (js!selfcall
- "var r = [" x "];" *newline*
- "r.type = 'character';"
- "return r"))
-
(define-builtin char-upcase (x)
(code x ".toUpperCase()"))
(define-builtin string-upcase (x)
(code "make_lisp_string(xstring(" x ").toUpperCase())"))
-(define-builtin string-length (x)
- (code x ".length"))
-
(define-raw-builtin slice (vector a &optional b)
(js!selfcall
"var vector = " (ls-compile vector) ";" *newline*