switch from pair to record and change name to ListReplaceUnsafe

This commit is contained in:
Brendan Hansknecht 2022-02-24 20:41:26 -08:00
parent 27b47713aa
commit dddf8ff785
8 changed files with 29 additions and 25 deletions

View file

@ -291,8 +291,8 @@ pub fn list_drop_at<'a, 'ctx, 'env>(
)
}
/// List.replace : List elem, Nat, elem -> List elem
pub fn list_replace<'a, 'ctx, 'env>(
/// List.replace_unsafe : List elem, Nat, elem -> { list: List elem, value: elem }
pub fn list_replace_unsafe<'a, 'ctx, 'env>(
env: &Env<'a, 'ctx, 'env>,
_layout_ids: &mut LayoutIds<'a>,
list: BasicValueEnum<'ctx>,