[PD] RFC: "list split" abstraction for negative indices

Frank Barknecht fbar at footils.org
Wed Nov 2 09:41:52 CET 2005


I want to include an abstraction into [list]-abs which acts as a
wrapper around [list split] but also accepts negative indices to split
off a list from the back. That is, a "list 0 1 2 3 4" splitted at
index "-2" would give two lists, "0 1 2" and "3 4". 

While this is no problem to implement, I'm still undecided about, how
I should order the outlets of this abstractions? 

To recapitulate: Currently the standard [list split 2] would send "0
1" to the first outlet and "2 3 4" to the second. 

Should a fictional [list split -2] send "3 4" to the first or to the
second outlet?

(Note: I tend to prefer sendign "3 4"  to the first outlet, as it's
technically easier, but I would like your opinions, too.)

 Frank Barknecht                 _ ______footils.org_ __goto10.org__

More information about the Pd-list mailing list