Closed k4g4 closed 3 months ago
it looks like the documentation for list.take claims it "does not copy the list", even though it actually has to copy the list twice (once to take the first n items, and once to reverse it). This was probably a mix-up with list.drop's documentation being inappropriately copied over. https://github.com/gleam-lang/stdlib/blob/341a71049ad765f8788af497969efbb94aba0bab/src/gleam/list.gleam#L585
list.take
list.drop
A copy paste mistake I wager. Thank you
it looks like the documentation for
list.take
claims it "does not copy the list", even though it actually has to copy the list twice (once to take the first n items, and once to reverse it). This was probably a mix-up withlist.drop
's documentation being inappropriately copied over. https://github.com/gleam-lang/stdlib/blob/341a71049ad765f8788af497969efbb94aba0bab/src/gleam/list.gleam#L585