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
0 answers

Including more arguments in remove_if for a list of objects

I apologise if that is a mundane question, but I struggle to find a clear-cut answer to it. I have a list of user defined objects which are called Events, which is in turn a part of an event simulation. I would like to remove objects from the list…
MagicM
  • 37
  • 7
0
votes
1 answer

How do I create a method to grab a random value from another class?

I am trying to randomly grab integers from another class and cannot figure out how to get those values. The first class is my initial random number generator. The second class is the class I am trying to retrieve these numbers to. I have created a…
Joseph Kraemer
  • 111
  • 1
  • 2
  • 12
0
votes
1 answer

Memory game is removing any div even if the innerHTMLs do not match

I am creating a basic memory game. I want to remove the divs if the first clicked div's innerHTML matches the second, but for some reason it remove the divs no matter which two divs are clicked. How do I fix this issue? var picker = null; var…
Rafael
  • 3,593
  • 3
  • 17
  • 27
0
votes
3 answers

How to remove data from table if the ID is in the column

I have to write the script that will pull IDs of all members that email has been hard bounced. In order to do it I wrote this Select id FROM Members m Join tbl_memberlanguageid mli on m.ID = mli.MLI_MemberID Where Cast(dateCreated as date) >=…
0
votes
2 answers

How do I remove an attribute and an element if an ancestor's attribute holds a certain value using xsl

I am struggling with the following issue: In the below XML, I need to remove the attribute restrict="restrict" if the attribute is nested within an element that also contains an attribute restrict="restrict". I also need to remove the element…
123CSRPIN
  • 7
  • 5
0
votes
2 answers

jquery check for checked input

I have few radio inputs with unique id's. Now i have a script that shows some extra content if one of them is checked. It works. But i want to clear that extra content when i check another radio input. This code don't work is i thought. It is not…
Jakub M
  • 59
  • 6
0
votes
1 answer

Remove observations with specific numbers

I need to remove observations from the dataset that have a number after the decimal point. Some numbers got mixed into the date set that shouldn't be in and we have no what to tell which they are other than they have a number after the decimal point…
0
votes
5 answers

remove div with php if class exists

I have 2 div's, if one is shown with a class="goodbye" - how do I remove the other div with php? Or do I have to use jQuery?
Hello
user3544484
  • 761
  • 1
  • 9
  • 17
0
votes
1 answer

Duplicate Triples RDF

I have a question for you. I want to remove the duplicate triples in my file RDF. For example, I have these two RDF groups of triples: Triple 1= rdf:Description rdf:about="http://Group/row1" vocab:regione Campania /vocab:regione vocab:nome…
user3582433
  • 85
  • 2
  • 8
0
votes
2 answers

Remove order by of IN(1 2 10 5 5 )?

The following query works, but MySQL sorts the results set: SELECT STRINGTEXT FROM WEBSTRINGS WHERE GUI=0 AND LANGID='GB' AND TOKENID IN (312,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62, 63,87,88,89,90,208,210,249,309,310,311); This means that…
Vikas Kale
  • 53
  • 1
  • 2
  • 7
0
votes
4 answers

Remove from hashset while iterating

I have the following code: List> authorLists = new List> // fill it /** Remove duplicate authors */ private void removeDublicateAuthors(HashSet newAuthors, int curLevel) …
user565447
  • 969
  • 3
  • 14
  • 29
0
votes
3 answers

Which order is used to stack or heap variable creation

I've this code: #include #include #include using namespace std; struct P { bool operator()(const int &n) const { return n % 3 == 0; } }; int main() { std::list l({ 5, 2, 6, 1, 13, 9, 19…
user1131951
  • 141
  • 7
0
votes
1 answer

Remove an object for a short period of time?

I have this statement in my Draw method: public void DrawSprites(GameTime gameTime) { spriteBatch.Begin(SpriteSortMode.FrontToBack, BlendState.AlphaBlend); if (shieldPowerUp == false) // Draws the Original ship …
xoxo_tw
  • 269
  • 1
  • 7
  • 20
0
votes
2 answers

What is the graceful way to remove an element from C# ArrayList in a loop?

I'm quite happy with Java's ArrayList list = new ArrayList<>(); Iterator it = list.iterator(); while (it.hasNext()) { String s = it.next(); if(s.equals("delete me")){ it.remove(); } } not quite…
milesma
  • 1,561
  • 1
  • 15
  • 37
0
votes
1 answer

SQL Where Statement Removing Contracts with 2nd "-"

I've got a table with a list of contracts: CT-12345, CT-12346, CT-12347, CT-12347-B1, CT-12560-A1, etc. etc. I need a where statement where it'll exclude anything that has a -... at the end of the contract. A '%-%' would exclude the first 3 as well…
Joshua
  • 287
  • 1
  • 2
  • 12