time-to-botec/squiggle/node_modules/@rescript/std/lib/es6/caml_string.js
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

24 lines
339 B
JavaScript

function get(s, i) {
if (i >= s.length || i < 0) {
throw {
RE_EXN_ID: "Invalid_argument",
_1: "index out of bounds",
Error: new Error()
};
}
return s.codePointAt(i);
}
function make(n, ch) {
return String.fromCharCode(ch).repeat(n);
}
export {
get ,
make ,
}
/* No side effect */