Str.splitFirst and Str.splitLast

This commit is contained in:
Folkert 2022-07-03 19:47:06 +02:00
parent be3800d7fa
commit eeb271d07f
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
7 changed files with 135 additions and 3 deletions

View file

@ -1734,7 +1734,7 @@ fn str_count_bytes(symbol: Symbol, var_store: &mut VarStore) -> Def {
/// Str.substringUnsafe : Str, Nat, Nat -> Nat
fn str_substring_unsafe(symbol: Symbol, var_store: &mut VarStore) -> Def {
lowlevel_1(symbol, LowLevel::StrSubstringUnsafe, var_store)
lowlevel_3(symbol, LowLevel::StrSubstringUnsafe, var_store)
}
/// Str.fromUtf8 : List U8 -> Result Str [BadUtf8 { byteIndex : Nat, problem : Utf8Problem } }]*