Advice: The differences between cat and ||

There are two ways to join two strings together: with the cat function (e.g. cat(a,b) ) and with the || operator (e.g. a||b ). In many situations these have identical results, but there are two differences:

> a:= b: b:= c:

> a||a||a;

acc

> cat(a,a,a);

ccc

> cd:= ef:

> c||d;

ef

> cat(c,d);

cd

> %;

ef

See also:

cat , || operator , eval

Maple Advisor Database, R. Israel 1998