Hi Tobias
On Tuesday, 27 October 2015 15:19:13 UTC+2, Tobias Beer wrote:
>
>
>
>> I see, so you are required to specify the operand using text-references
>>> or variables for multiple items.
>>>
>>
>>
> Not a requirement -- a simple list such as [one two [[and three]]] also
>> works
>>
>
> I don't think so. This does not work, and I sure did not expect it to:
>
> {{{ [list[!!x]append:3[one two [[and three]] ]] }}}
>
This restriction, to a certain extent removes the added convenience of
listing the items in the operand. Another option would be to create a
choose[] filter operation which can be used to append a range of items from
another list to the list being manipulated. Items could be prepended by
using the putfirst[] operator (which would move these items from the tail
to the head of the list.) Makes the behaviour clearer, but does involve two
steps.
filter="[list[mylist]select:3{mytext!!reference}putfirst:3[]]"
This would leave only the remove[] filter with the anomalous syntax --
seems no way around that :-/
regards
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/52c433fd-a82f-4226-b4fd-4b8e514e1064%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.