470,606 Members | 2,428 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,606 developers. It's quick & easy.

Inverse of 'chop @array'

'chop @array' removes the last character for each element in an array. If I
want to do the inverse and append a character to each element, how would I
do that (without using a 'foreach' loop)?
Jul 19 '05 #1
1 1860
"gusmeister" <gu****************@sympatico.ca> wrote in message
news:ho********************@news20.bellglobal.com. ..
'chop @array' removes the last character for each element in an array. If I want to do the inverse and append a character to each element, how would I
do that (without using a 'foreach' loop)?


You could use map instead, but that would just hide the loop inside of it's
own logic.

jue
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by davidv | last post: by
6 posts views Thread by vishnu mahendra | last post: by
2 posts views Thread by bartsimpson8882002 | last post: by
4 posts views Thread by Jonathan Fine | last post: by
1 post views Thread by dennis.sprengers | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.