REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: rejoin

rejoin  block

Reduces and joins a block of values.

Arguments:

block [block!] - Values to reduce and join

See also:

join   ajoin   form   reform  

Description

Similar to join but accepts only one argument, the block (which will be reduced first). No spaces are inserted between values.

rejoin ["time=" now/time]
time=17:47:54

Notice this important case:

rejoin [<a> "test"]
<atest>

This is fine for lines like:

rejoin [<a href=> "test.html"]
<a href=test.html>

But you can see it creates a problem in this case:

rejoin [<a href=test.html> "test" </a>]
<a href=test.htmltest</a>>

If you want the result to be a string!, use the ajoin function instead.

ajoin [<a href=test.html> "test" </a>]
"<a href=test.html>test</a>"


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin