Skip to content
View in the app

A better way to browse. Learn more.

Learn more

position-insert

Featured Replies

Hi,

 

How does position-insert work?

(setf test '(c4 d4 e4 fs5 e4))

(setf test2 (position-insert '(1 3 5 7) 'b3 test))
=>(c4 b3 d4 b3 e4 b3 fs5 e4)
;     1     3     5     ?

what am I missing?

Yes, this is important to have flexibility on editing materials. I´d like to know how to use it better.

This is how it works, but I will extend the length to cover all possible positions.

 

(setf test '(c4 d4 e4 fs5 e4))

(position-insert '(1 3 5 7 9) 'b3 test)
=> (c4 b3 d4 b3 e4 b3 fs5 b3 e4 b3)

 

 

  • Author

Your example gives at my cpu this:

(position-insert '(1 3 5 7 9) 'b3 test)
=>(c4 b3 d4 b3 e4 b3 fs5 e4)

so it does not make so much difference, am I the only one, can someone please try this little example, thanks!

  • Author

Ok, I see, thanks!

Create an account or sign in to comment

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.