#
Outputs the number of the current iteration.
The meaning of #
depends on the context from which it is run and its full meaning is documented in the procedures which provide this context.
In general, it is usable from contexts that iterate over a list of values and it outputs the position of the current value (1 for the first value, 2 for the second, etc.).
#
has no meaning outside of an iteration context.
The following example shows how to use #
within the context of FILTER to extract the first three characters of a word.
SHOW FILTER [# <= 3] "abcdefg
abc
The next example shows how to use #
as a shorthand for REPCOUNT.
REPEAT 5 [ SHOW # ]
1
2
3
4
5
CASCADE |
FIND |
FOREACH |
MAP |
MAP.SE |
REPEAT |