mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
spec for List.reverse
This commit is contained in:
parent
13d480d5f3
commit
0690633116
4 changed files with 16 additions and 3 deletions
|
@ -172,6 +172,7 @@ pub fn list_reverse<'a, 'ctx, 'env>(
|
|||
env: &Env<'a, 'ctx, 'env>,
|
||||
list: BasicValueEnum<'ctx>,
|
||||
list_layout: &Layout<'a>,
|
||||
update_mode: UpdateMode,
|
||||
) -> BasicValueEnum<'ctx> {
|
||||
let element_layout = match *list_layout {
|
||||
Layout::Builtin(Builtin::EmptyList) => {
|
||||
|
@ -190,6 +191,7 @@ pub fn list_reverse<'a, 'ctx, 'env>(
|
|||
pass_list_cc(env, list),
|
||||
env.alignment_intvalue(&element_layout),
|
||||
layout_width(env, &element_layout),
|
||||
pass_update_mode(env, update_mode),
|
||||
],
|
||||
bitcode::LIST_REVERSE,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue