zsh-users
 help / color / mirror / code / Atom feed
* Mapping split ${(s::)...} across an array
@ 2015-12-03 16:00 Bart Schaefer
  2015-12-03 16:18 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Bart Schaefer @ 2015-12-03 16:00 UTC (permalink / raw)
  To: zsh-users

I recently had a situation where I wanted to create a new array by splitting
every element of an existing array.  The only solution I came up with was
to first join the original array into a string using the same character I
wanted to use to split the individual elements.

Is there another way?  :s// and similar replacements are mapped across an
array by definition, but that doesn't help (does it?).


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-12-03 16:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-03 16:00 Mapping split ${(s::)...} across an array Bart Schaefer
2015-12-03 16:18 ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).