|REBOL 3 Docs||Guide||Concepts||Functions||Datatypes||Errors|
|TOC < Back Next >||Updated: 4-Aug-2010 Edit History|
Reduces and joins a block of values into a new string.
The join and rejoin functions return the same datatype as their first element, be it a string!, file!, binary!, tag!, email! or whatever. However, there are times when you just want to construct a string!, and that's the purpose of ajoin.
ajoin ["test" 123] "test123"
It is similar to reform but does not insert spaces between values:
reform ["test" 123] "test 123"
Note that the block is always evaluated:
time: 10:30 ajoin [time/hour "h" time/minute "m"] "10h30m"
The ajoin function is equivalent to:
to-string reduce block
ajoin [<test> 123] "<test>123"
rejoin [<test> 123] <test123>
join <test> 123 <test123>
|TOC < Back Next >||REBOL.com - WIP Wiki||Feedback Admin|