We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Char is a unicode code point in MoonBit, it is encoding agnostics, it is not tied to utf16, so we should not provide APIs like this:
fn Char::is_surrogate(Char) -> Bool
We should provide String.as_iter which returns Iter[Char]
“A😊𠮷B" .as_iter() .reduce(init=Vec::[], fn {acc, x -> acc.push(x)}) // expected output [65, 128522, 134071, 66]
cc @yj-qin
The text was updated successfully, but these errors were encountered:
lijunchen
No branches or pull requests
Char is a unicode code point in MoonBit, it is encoding agnostics, it is not tied to utf16, so we should not provide APIs like this:
We should provide String.as_iter which returns Iter[Char]
cc @yj-qin
The text was updated successfully, but these errors were encountered: