Swap List.repeat args order to put the list first

This commit is contained in:
Jan Van Bruggen 2022-02-11 15:53:28 -07:00
parent 5fa368ff0a
commit 92e0f8714f
No known key found for this signature in database
GPG key ID: F4B9828637D6D81B
8 changed files with 20 additions and 20 deletions

View file

@ -119,13 +119,13 @@ pub fn list_single<'a, 'ctx, 'env>(
)
}
/// List.repeat : Int, elem -> List elem
/// List.repeat : elem, Int -> List elem
pub fn list_repeat<'a, 'ctx, 'env>(
env: &Env<'a, 'ctx, 'env>,
layout_ids: &mut LayoutIds<'a>,
list_len: IntValue<'ctx>,
element: BasicValueEnum<'ctx>,
element_layout: &Layout<'a>,
list_len: IntValue<'ctx>,
) -> BasicValueEnum<'ctx> {
let inc_element_fn = build_inc_n_wrapper(env, layout_ids, element_layout);