diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2011-10-25 11:24:29 -0400 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2011-10-25 11:24:29 -0400 |
commit | 8895368748f50ab84f9006c6df7d82edc4019817 (patch) | |
tree | 93ff71e50d44e9cfbcac752f62d64bd3838622f2 /txr.1 | |
parent | 763f15ad2b8327a04b0dad97982bf19150aa7397 (diff) | |
download | txr-8895368748f50ab84f9006c6df7d82edc4019817.tar.gz txr-8895368748f50ab84f9006c6df7d82edc4019817.tar.bz2 txr-8895368748f50ab84f9006c6df7d82edc4019817.zip |
* txr.1: Updated.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -3060,14 +3060,21 @@ This function binds the out parameter to "bar" if the in parameter is "foo", otherwise it binds the out parameter to a copy of the in parameter. This is a simple filter. -To use the filter, use the syntax (fun foo_to_bar) in place of a filter name. +To use the filter, use the syntax (:fun foo_to_bar) in place of a filter name. For instance in the bind directive: - @(bind "foo" "bar" :lfilt (fun foo_to_bar)) + @(bind "foo" "bar" :lfilt (:fun foo_to_bar)) The above should succeed since the left side is filtered from "foo" to "bar", so that there is a match. +Of course, function filters can be used in a chain: + + @(output :filter (:downcase (:fun foo_to_bar) :upcase)) + ... + @(end) + + .SS The Deffilter Directive The deffilter directive allows a query to define a custom filter, which |