Hi all, Here are list-remove and list-swap.
[list-remove] is like list-delete, but it allows the removal of an arbitrary number of items.
[list-swap] is a hybrid of list-remove and list-insert. It overwrites a portion of a list with another list of arbitrary length.
I considered the name [list-overwrite]; I decided it was too long, but I'm open to suggestions.
HTH, Luke
Luke Iannini (pd) wrote:
[list-swap] is a hybrid of list-remove and list-insert. It overwrites a portion of a list with another list of arbitrary length.
I considered the name [list-overwrite]; I decided it was too long, but I'm open to suggestions.
[list-replace] would be better, I think.
[list-swap] makes me thing of [swap], which does something completely different.
Claude
Good point.
I just had another look at [list-replace] (which already existed, and caused me to seek a new name). And in fact, it does just what my [list-swap] does... I seem to have a knack for replicating work. I somehow thought it could only truncate lists and append to them.
So, the naming issue is moot : ). But I do think list-remove does something novel? Right?
On 5/19/07, Claude Heiland-Allen claudiusmaximus@goto10.org wrote:
Luke Iannini (pd) wrote:
[list-swap] is a hybrid of list-remove and list-insert. It overwrites a portion of a list with another list of arbitrary length.
I considered the name [list-overwrite]; I decided it was too long, but I'm open to suggestions.
[list-replace] would be better, I think.
[list-swap] makes me thing of [swap], which does something completely different.
Claude
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hallo, Luke Iannini (pd) hat gesagt: // Luke Iannini (pd) wrote:
[list-remove] is like list-delete, but it allows the removal of an arbitrary number of items.
I like this idea. I now extended list-delete to accept a second argument and with a second inlet to do as your list-remove does. (I chose a slightyy different implementation, though.)
Frank Barknecht _ ______footils.org_ __goto10.org__