Wishlist
- Posted by Derek Parnell <ddparnell at bigpond.com> Jun 27, 2001
- 573 views
Hi Karl, > The wordiness I was trying to address was not the 'append', but > the redundant 'seq'. My way is a failure; Is there another way? How about borrowing some symbols used in regular expressions... seq $= "aaaa" -- Append seq ^= "aaaa" --Prepend By the way, Daryl, "&=" is not the same as append(). append() always adds ONE new element to the left hand side sequence. That being the entire right hand side object. Thus after an append() the length of LHS is always increased by exactly one. &= and & always adds AS MANY ELEMENTS as in the right side to the left hand side sequence. Thus after a concatenation '&' operation, the length of LHS is always increased by length(RHS). sequence a, b a = "abc" b = "def" a = append(a,b) ? a -- Should be { 'a', 'b', 'c', {'d', 'e', 'f'}} -- Length of a is now 4! a = "abc" b = "def" a &= b ? a -- Should be { 'a', 'b', 'c', 'd', 'e', 'f'} -- Length of a is now 6! --------- cheers, Derek Parnell Senior Design Engineer Global Technology Australasia Ltd dparnell at glotec.com.au --------------------- confidential information intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify the sender immediately. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Global Technology Australasia Limited.