1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-26 18:10:27 +00:00

Docs: clarify function operator invocation

See discussion at https://github.com/Jermolene/TiddlyWiki5/issues/6991#issuecomment-1301703599
This commit is contained in:
jeremy@jermolene.com 2022-11-05 10:13:35 +00:00
parent 478b585a8c
commit 149d6c2d73

View File

@ -10,7 +10,7 @@ tags: [[Filter Operators]]
title: function Operator title: function Operator
type: text/vnd.tiddlywiki type: text/vnd.tiddlywiki
<<.from-version "5.3.0">> The <<.op function>> operator applies a named [[function|Functions]] to the input titles, and returns the results from the function. <<.from-version "5.3.0">> The <<.op function>> operator applies a named [[function|Functions]] to the input titles, and returns the results from the function. The function is invoked once with all of the input titles (in contrast, the [[filter Operator]] invokes its function separately for each input title).
The first parameter of the <<.op function>> operator specifies the name of the function to be called. Subsequent parameters are passed to the function. The first parameter of the <<.op function>> operator specifies the name of the function to be called. Subsequent parameters are passed to the function.