mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
fix list sorting
This commit is contained in:
parent
c274ada741
commit
f7d1ba6952
1 changed files with 8 additions and 3 deletions
|
@ -6026,10 +6026,15 @@ fn run_low_level<'a, 'ctx, 'env>(
|
||||||
// List.isUnique : List a -> Bool
|
// List.isUnique : List a -> Bool
|
||||||
debug_assert_eq!(args.len(), 1);
|
debug_assert_eq!(args.len(), 1);
|
||||||
|
|
||||||
let list = load_symbol(scope, &args[0]);
|
let list = load_symbol(scope, &args[0]).into_struct_value();
|
||||||
let list = list_to_c_abi(env, list).into();
|
|
||||||
|
|
||||||
call_bitcode_fn(env, &[list], bitcode::LIST_IS_UNIQUE)
|
call_list_bitcode_fn(
|
||||||
|
env,
|
||||||
|
&[list],
|
||||||
|
&[],
|
||||||
|
BitcodeReturns::Basic,
|
||||||
|
bitcode::LIST_IS_UNIQUE,
|
||||||
|
)
|
||||||
}
|
}
|
||||||
NumToStr => {
|
NumToStr => {
|
||||||
// Num.toStr : Num a -> Str
|
// Num.toStr : Num a -> Str
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue