step 2: Closure.roc works

This commit is contained in:
Folkert 2022-03-26 17:58:37 +01:00
parent 71c11784a0
commit 57ff0e8212
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -226,13 +226,9 @@ pub fn str_count_graphemes<'a, 'ctx, 'env>(
scope: &Scope<'a, 'ctx>,
str_symbol: Symbol,
) -> BasicValueEnum<'ctx> {
let str_i128 = str_symbol_to_c_abi(env, scope, str_symbol);
let string = load_symbol(scope, &str_symbol);
call_bitcode_fn(
env,
&[str_i128.into()],
bitcode::STR_COUNT_GRAPEHEME_CLUSTERS,
)
call_bitcode_fn(env, &[string], bitcode::STR_COUNT_GRAPEHEME_CLUSTERS)
}
/// Str.trim : Str -> Str