Questions tagged [remove-if]

Common Lisp 'remove-if' function.

Common Lisp 'remove-if' function.

It's signature is:

remove-if test sequence &key from-end start end count key => result-sequence

CLHS: remove-if

201 questions
0
votes
1 answer

phpmyadmin how to remove certain text from a field?

I have a table called products which has a field called products_description, how can I remove certain text from the fields for example if the text abc exists then remove it from all products? thanks
John
  • 136
  • 1
  • 12
0
votes
1 answer

jstree stable version: How do I check if there are any children before refreshing the tree?

I want only to refresh the tree if there are no children.. ie: $.jstree._reference("#f").get_checked(-1, true).each(function(index,element) { $("f").jstree("remove",'#'+$(element).attr("id")); }); …
Jean G.T
  • 1
  • 10
  • 25
-1
votes
1 answer

Remove all values "Home " from scraped list of names

I have a list of names I have scraped from a website. In that list, there are some observations that are not names but are called "Home ". I can remove them by uni_name.pop(), but this is not easily repeatable. How do I remove all values from the…
-1
votes
2 answers

std::remove_if() problem with the for looping

my code was #include #include #include using namespace std; void tes(std::string s) { cout << "tes " << s << '\n'; } void tes2(std::string s) { cout << "tes " << s << '\n'; } void tes3(std::string s) { …
lie ardi
  • 5
  • 2
-1
votes
2 answers

How to remove object from an arraylist

its gonna seem complicated but I want to make a function that removes an object from the ArrayList of an object that is in another ArrayList let me simplify it, there is a class with objects (students) and every student has an ArrayList…
-1
votes
1 answer

C++20 Unable to Satisfy Constraint for ranges::remove_if()

I have the following class: template class Node { private: T item_; public: T Item() const {return item_;} Node(T item) : item_(item) {} Node& operator=(T item) { item_ = item; return *this;} Node&…
Kok How Teh
  • 3,298
  • 6
  • 47
  • 85
-1
votes
2 answers

Removing elements of one list if present in another list using stream

I didn't find any thread here on this Question. I am trying to Remove elements (Cars in my case) of one list (cars1) if present in another list (cars2) using java stream. I tried using removeIf but then it felt like it works more appropriately with…
Tiya
  • 553
  • 8
  • 26
-1
votes
1 answer

Java - Trying to remove certain elements from List

I'm trying to remove words starting with &, but the followning code gives me the following error: Exception in thread "main" java.lang.UnsupportedOperationException at java.util.AbstractList.remove(AbstractList.java:161) at…
Ahmed Khairy
  • 145
  • 2
  • 16
-1
votes
2 answers

why the if-else does not loop

I find my prog's if-else does not loop, why does this happen and how can I fix it for checking? my prog supposed that store user's inputs which must between 10 and 100, then delete duplicated inputs. examples:…
Mayble
  • 1
  • 2
-1
votes
1 answer

Remove Item From List if Found in Python

How can i remove an item from a list if it is found to match another item from another list? for item in bigIpList: for item2 in smallIpList: if item==item2: #remove item from bigIpList
pHorseSpec
  • 1,246
  • 5
  • 19
  • 48
-1
votes
1 answer

remove rows containing string

I would like to know how i can remove these rows insted of making them green Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click 'test Dim examplea As String = "PAID" If DataGridView1.Rows.Count > 0…
LabRat
  • 1,996
  • 11
  • 56
  • 91
-1
votes
1 answer

Remove part of an array if its not contain

I have an array in php called $json. It looks like this Array ( [0] => Array ( [name] => Knife [url] => http://steamcommunity.com/market/listings/753/297120... [price] => 0.16 USD [image] =>…
Toni Mhb
  • 53
  • 6
-1
votes
2 answers

Wordpress: How to show only tags without containing numbers?

I need a solution, that enables me to show below a listing on a wordpress page only tags that don't contain a number. This is my code:
-1
votes
4 answers

R: extract values of one column (x) that have at least one +1 in another column (y) in a data frame

I have this data.frame: > d x y 1 6 1 2 2 -1 3 3 -1 4 2 -1 5 3 1 6 1 -1 7 4 1 8 7 -1 9 3 -1 10 4 -1 11 8 1 12 4 -1 13 2 -1 14 9 -1 15 5 1 16 7 1 17 6 -1 18 7 -1 19 3 -1 20 2 -1 I want to search for rows that have the same value…
Vahid Mirjalili
  • 6,211
  • 15
  • 57
  • 80
-2
votes
2 answers

Cut array elements before pair of values

Having the array "a" I want to look for a pair of values within array "a". "02" followed by "10" and if found, I want to create 2 new arrays, one beginning in "02", "10" and the other beginning 3 positions after "02", "10". a = ["11", "45", "01",…
Ger Cas
  • 2,188
  • 2
  • 18
  • 45
1 2 3
13
14