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
-2
votes
2 answers

c++ understanding the third argument of `remove_if()`

I'm trying to understand the third argument in the remove_if() algorithm. According to the description it should be removed if the function returns true. However the function does not return a bool. What syntax is [](char c)? Does remove_if()…
samsung gather
  • 583
  • 1
  • 4
  • 8
-2
votes
4 answers

Loop through element id's

I have this jQuery code to detect if all the values in a column are empty, and, if they are, remove the column: var valid=0; jQuery("#column1 input[type=text]").each(function(){ if(jQuery(this).val() != "") valid+=1; }); if(valid ==0){ …
Mark Booth
  • 21
  • 6
-3
votes
3 answers

How to remove a white space at the end of a string in java?

I am trying to remove exactly one white space at the end of a string. eg. I want " XXXX " to be " XXXX". The trim() method in java removes all leading and trailing whitespaces. Any help will be appreciated :)
-3
votes
1 answer

Clean the time series data by Python

I have a raw data set with ship code (MMSI), time. Because of large amount of raw data, now I want to remove data by ship code (MMSI) with time step of more than 10 minutes. For example: To this: I tried to calculate the time interval between rows…
-3
votes
1 answer

How to remove column if specific value in first row in in in Matlab?

If I have a row A = 1 2 3 4 2 4 7 then I can delete twos with >> A(A==2)=[] A = 1 3 4 4 7 Now suppose i have >> A=[1,2,3,4,2,4,7; 1,2,3,4,5,6,7] A = 1 2 3 4 2 4 7 …
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
1 2 3
13
14