core/vec/used.ldn
skip to the library navigation1import core/mem
2
3--- Lend a mutable slice covering only the initialized items. The slice
4--- derives from the list.
5---
6--- End every use of the view before an operation that changes capacity,
7--- relocates the backing or releases the storage.
8public used: (item: type, value: list(item))
9 -> (items: []mut item from value) =
10 items = mem.used(value.values)
11end used