21
values []V,
22
indexer func(V) K,
24
>
ret := &IndexedTakeList[K, V]{
25
>
values: make([]kv[K, V], 0, len(values)),
26
>
}
27
>
for _, v := range values {
29
>
}
31
}
32
33
// Take finds a value in this set by its key and removes it, returning the
34
// value.
36
>
var zero V
37
>
for i := 0; i < len(itl.values); i++ {
39
>
if kv.key != key {
41
}
42
if kv.removed {