Cat |
Strings | |
Aptilis 1 |
Cat(String1, String2, String3...)
Cat is a cheap alternative to string concatenation with
'+' as in:
c = a + b $
Cat uses less memory and is faster than '+', especially when
concatenating more than 2 strings together.
Programatically, however use whatever solution is more
legible to you.
Return Value:
A concatenated strings made up of up to 32 parameters passed to
Cat().
Example:
s = "Leelou" $ c = cat("The cat's name is: ", s$) $ print(c$, "\n") p1 = "The cat " $ p2 = "thinks " $ p3 = "she is " $ p4 = "a Bengali tiger!" $ phrase = cat(p1$, p2$, p3$, p4$)$ print(phrase$, "\n")Result:
The cat's name is: Leelou The cat thinks she is a Bengali tiger! |