stdlib
stdlib copied to clipboard
Add `bit_array.to_string_lossy`
Fixes #797.
The separate version of the function for the JavaScript target is a little bit of an eyesore, but can be removed at some future date once utf_codepoint pattern matching is supported on that target.
This PR is done but can't merge until Gleam supports utf_codepoint in bit array patterns on the JavaScript target.
Converting to draft until that's ready.
oooh, compiler bug