Group Admins

  • Profile picture of Karim
  • Profile picture of Jean

OpenMusic

Public Group active 1 hour, 41 minutes ago

User group for OpenMusic and computer-aided composition. Visit the Forum for discussions.

Adding arguments for 'lisp remove'

Author 2 Subscribed Users |
Profile photo of ruben_gjertsen
ruben_gjertsen

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:

“<count> 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

 

 

April 10, 2013 at 20:48 #4593
Profile photo of Karim
Karim

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

Attachments:
  1. Screen-Shot-2013-04-10-at-22.26.36

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

April 10, 2013 at 21:29 #4594
Profile photo of Karim
Karim

sorry , … where you can input 1….

😉

K

April 10, 2013 at 21:30 #4596
Profile photo of ruben_gjertsen
ruben_gjertsen

Thank you!

R

April 10, 2013 at 21:42 #4597

You must be logged in to reply to this topic.

Log in now