mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
remove giesch/todo tags, add List.drop doc
This commit is contained in:
parent
700ab20a8c
commit
65821d6a9f
3 changed files with 4 additions and 8 deletions
|
@ -833,8 +833,6 @@ pub fn listDrop(
|
|||
}
|
||||
}
|
||||
|
||||
// GIESCH do a uniqueness check, and reuse the same array if possible
|
||||
// GIESCH figure out where to specify uniqueness of output, update builtins readme
|
||||
pub fn listDropAt(
|
||||
list: RocList,
|
||||
alignment: u32,
|
||||
|
@ -846,7 +844,6 @@ pub fn listDropAt(
|
|||
const size = list.len();
|
||||
|
||||
if (drop_index >= size) {
|
||||
// GIESCH should this still copy/reallocate if non-unique?
|
||||
return list;
|
||||
}
|
||||
|
||||
|
@ -866,7 +863,6 @@ pub fn listDropAt(
|
|||
const tail_size = (size - drop_index - 1) * element_width;
|
||||
@memcpy(tail_target, tail_source, tail_size);
|
||||
|
||||
// GIESCH what's the difference between this and Dec?
|
||||
utils.decref(list.bytes, size * element_width, alignment);
|
||||
|
||||
return output;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue