我想收集一个原子列表并将一个列表传递给一个对象或抽象,该对象或抽象将通过匹配的原子而不修改列表的顺序或删除重复项。
(hello how are you)
|
[desiredobject how are you]
|
[print]
理想情况下,这将打印(你好吗)。如果我要输入(如何输入),我会得到相同的信息。但是如果我输入 (jfj jfj jfj) 我什么也得不到。
[zl] 很有用,但我正在寻找 [zl filter] 的相反行为。
编辑:
我想出了以下解决方案,它与@mattijs 发布的解决方案同样有效。我的解决方案使用 [uzi] 给出列表中符号的索引。[zl filter] 的索引输出被馈送到 [zl unique] 以去除不需要的索引。这个新列表被馈送到 [zl lookup] 以转换回符号。插入(假)消息以防 [zl filter] 过滤所有内容,然后 [zl unique] 将没有输出。
----------begin_max5_patcher----------
1385.3oc0Z0scipBE95jmBVdclYo3Owbt67bz0r5hnzDZMfGEa6zYMu6GDvD
v+hoMM0dQzHHvlu89aCrc+mkKb1xdEW5.9GvcfEK9yxEKjEUWvB8yKbNfdMI
CUJeMGJ9E11GcVophiekKKNGjTvJKKvOfKvzDbyKPqNvp3YXtr0Pcoph3+NG
qFZGmUhefeoq9AFkWRdSVoG7mtm5KBscWki3I6Izc2WfS3pdKHVzDP755qdt
t02fhqG6dRpTjESie3CcLFSJ5fbLc92BBJywbDvEZLQCJhFPxvOiKJILpTNW
oKGkmaT7BilTijOxjcTzpiEQnph7NVTA9YRS6cOVJpPLO4hIYUgRHeMNxQU4
eW1L3m.gvvn5IdPP800wxaQvfSvfPQuKik7DN0bbbX4XJglWfKwTNh2RLbRw
Ofpx322uJxt9GPI3AabuX8BmcEjTFsVHrZYcwMC2c.uPopMzbxHeCJJumFWJ
lGUkaQE0v51Lrg4ivBlwxrq5nlTPDPTxADGyIJgE5drSIGxKHTt0.goHQeru
TPExxr5JUMO2SMoBkcB9ERJeuruLgRwqSxaTANGwnTxNbI2tLNZWocIVLaSq
PSFtU4sX5RtVS20kK6YTSW97QEijAYXMYvS87kby.o1zUewpgVLdWydrKqGF
IswCkWggMWs5OCler4LKgc3.lpgzlh+6xkM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