Original issue 552 created by brazilofmux on 2009-01-09T06:58:32.000Z:
I was thinking that FOREACH() not having a odelimiter is rather weird, but
then I realized that if it does, you might as well switch over to citer()
from rhost:
Function: citer(<list>, <eval>[, <delim>])
<list> is a list of characters that you wish to iterate. The list can
be any regular character (including spaces). <eval> is a string that is
to be evaluated once for each character in <list>. It returns a SPACE
(or optional delimited) separated list of these evaluations. The effect
is similar to that of iter(), except it takes it as a character by
character basis instead of a word by word basis. The special substitution
of '##' is used for the current item of the list. #@ is used for the
positional match of that item in that list.
Same function, except CITER() doesn't need a OBJECT or ATTRIBUTE to pull from.
Original issue 552 created by brazilofmux on 2009-01-09T06:58:32.000Z:
I was thinking that FOREACH() not having a odelimiter is rather weird, but then I realized that if it does, you might as well switch over to citer() from rhost:
Function: citer(<list>, <eval>[, <delim>])
<list> is a list of characters that you wish to iterate. The list can be any regular character (including spaces). <eval> is a string that is to be evaluated once for each character in <list>. It returns a SPACE (or optional delimited) separated list of these evaluations. The effect is similar to that of iter(), except it takes it as a character by character basis instead of a word by word basis. The special substitution of '##' is used for the current item of the list. #@ is used for the positional match of that item in that list.
Same function, except CITER() doesn't need a OBJECT or ATTRIBUTE to pull from.