< Back to IRCAM Forum

Adding arguments for 'lisp remove'

Dear all,

I’m trying to remove an element from a list only once, and the ‘lisp remove’ function seem to have options for this:

" allows to specify a maximal number of items to remove."

However, I’m unable to add more arguments to ‘remove’ using alt-arrow.

If I want to do this: (remove 5 '(1 2 3 4 5 5 5 5) :count 1) ==> (1 2 3 4 5 5 5)

How can I do this in a patch? I’m still using OM 6.5.1.

Best,

Ruben

 

 

Hi Ruben,

 

Yes of course you can do that. Since count is a Keyword, you should be able to add the third input by selecting the function and typing ‘k’ (as key).

Then you will have a menu with keyword. Choose :count, then shift click on the third input in order to have an int box where you can put 5 (c.f screen_shot).

Best

K

Screen-Shot-2013-04-10-at-22.26.36.png

sorry , … where you can input 1…

:wink:

K

Thank you!

R