UNPKG

@rescript/std

Version:

The motiviation of this repo is that when ReScript users want to share their library with JS users, the JS users don't need have ReScript toolchain installed, this makes sharing code with JS users easier (more details on that topic can be found in our [Ex

22 lines (17 loc) 364 B
'use strict'; 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); } exports.get = get; exports.make = make; /* No side effect */