function caml_lex_array(s) {
    var l = s.length / 2;
    var a = new Array(l);
    for (var i = 0; i < l; i++)
        a[i] = (s.charCodeAt(2 * i) | (s.charCodeAt(2 * i + 1) << 8)) << 16 >> 16;
    return a;
}
caml_lex_array("abcd")
[25185, 25699]
@param s
@returns {any[]}
TODO: duplicated with module {!Caml_lex}