From 78e5d53c981691b2022bbb657cba3da0747444c5 Mon Sep 17 00:00:00 2001
From: Michael Kay $s => tokenize() =!> fn { `"{.}"` }()
first tokenizes the string $s
,
then wraps each token in double quotation marks.
The expression function { EXPR }
(or fn { EXPR }
) is a syntactic shorthand for the expression
- function($Z as item()*) as item()* { $Z ! (EXPR) }
, where $Z
is a variable name that is
- otherwise unused. Note that the function body (EXPR
) is evaluated with a
The result of calling the function { EXPR }
(or fn { EXPR }
), with
+ a single argument whose value is $Z arguments, is obtained by evaluating EXPR
+ with a dynamic context in which the context value is $Z, the context position is 1 (one),
+ and the context size is 1 (one).
For example, the expression every(1 to 10, fn{. gt 0})
returns true
.