1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-02 10:13:16 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/filters/each.tid
2015-01-18 19:20:02 +00:00

19 lines
713 B
Plaintext

created: 20140410103123179
modified: 20150118183030000
tags: [[Filter Operators]] [[Group Operators]]
title: each Operator
type: text/vnd.tiddlywiki
caption: each
purpose: get one of each group of input tiddlers by field value
<$macrocall $name=".operator-def"
input="a [[set|Tiddler Sets]] of tiddler titles"
parameter="the name of a [[field|TiddlerFields]]"
paramName="f"
output="a set containing the first tiddler with each distinct value for field <<.place f>>"
/>
Each input tiddler is processed in turn. The value of field <<.place f>> in that tiddler is examined, and as long as the value has not been encountered before, the tiddler's title is appended to the output set.
<<.operator-examples "each">>