Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
(let [[n m]
(split-with (partial not= x) items)]
(concat n (rest m)))
erase(items, x);
items.remove(x);
List.delete(items, x)
integer, dimension(:), allocatable :: items
i = findloc(items, x)
if (i /= 0) items = [items(1:i-1), items(i+1:)]
for i, y := range items {
if y == x {
items = append(items[:i], items[i+1:]...)
break
}
}
for i, y := range items {
if y == x {
copy(items[i:], items[i+1:])
items[len(items)-1] = nil
items = items[:len(items)-1]
break
}
}
const idx = items.indexOf(x)
if (idx !== -1) items.splice(idx, 1)
$list_position = array_search($x, $items);
$specific_item = $items[$position];
unset($specific_item);
items.remove(x)
for i in range(len(items)):
if items[i] == x:
del items[i]
break
del items[items.index(x)]
i = items.index(x)
items.delete_at(i) unless i.nil?
if let Some(i) = items.iter().position(|item| *item == x) {
items.remove(i);
}