On Saturday, 16-July-2005 at 10:18:14 =?gb2312?q?=C1=D6=20=D6=DC?= wrote, > >just in that section,the previous script is: > >http-port: open tcp://www.example.com:80 > >then can you explain to me how and when should I use join?
JOIN is for joining two series together. A few examples... >> join "abc" "def" == "abcdef" >> join %/c/rebol/ %test-script.r == %/c/rebol/test-script.r >> join %/c/rebol/ "test-script.r" == %/c/rebol/test-script.r >> join "/c/rebol/" %test-script.r == "/c/rebol/test-script.r" >> join ["a" "b" "c"] ["d" "e" "f"] == ["a" "b" "c" "d" "e" "f"] >> join ["a" "b" "c"] "def" == ["a" "b" "c" "def"] >> join "abc" ["d" "e" "f"] == "abcdef" As you'll notice from the latter ones there, the datatype of the first of the two values determine the type of value that's returned. Hope that helps. -- Carl Read. -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
