이 문서는 https://tiddlywiki.com/languages/ko-KR/에서 티들리위키의 정적 HTML 표현의 일부입니다

function Operator

2023년 4월 19일 오전 10:31
purposeapply a function to the input list, and return the result
inputa selection of titles passed as input to the function F
parameterF=first parameter is the function name, subsequent parameters are passed to the function by position
outputthe selection of titles returned from the function F

Learn more about how to use Filters

New in v5.3.0 The function operator applies a named function 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 function operator specifies the name of the function to be called. Subsequent parameters are passed to the function.

The mapping between the parameters is positional, with each consecutive parameter specified in the function call mapped to the corresponding parameter in the function definition. Any parameters that are not provided are given their default values.

Tip
Compare with the similar filter and subfilter operators which take a filter strings as their parameter instead of a named function, and does not permit parameters to be passed

Examples