MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Pad a sign - and + to a list of lists

  • To: mathgroup at smc.vnet.net
  • Subject: [mg49748] Re: [mg49728] Pad a sign - and + to a list of lists
  • From: János <janos.lobb at yale.edu>
  • Date: Fri, 30 Jul 2004 06:02:02 -0400 (EDT)
  • References: <200407291145.HAA10322@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

AppendTo and PrependTo with the combination of ReplacePart.

János
On Jul 29, 2004, at 7:45 AM, sean kim wrote:

> consider a list of lists
>
> {
> {{1, 1}}, {{1, 2}}, {{1, 3}},
> {{2, 1}}, {{2, 2}}, {{2, 3}},
> {{3, 1}}, {{3, 2}}, {{3, 3}}
> }
>
> Now pad a string or letter to the end of the each list within the list
> so u get...
>
> {{1, 1},string}, {{1, 2}, string}, {{1, 3}, string}
>
>  or sign
>
> {{1, 1},-}, {{1, 2},-}, {{1, 3},-}
>
> thanks in advance
>
> sean
>
>
-------------------------------------------------
clear perl code is better than unclear awk code; but NOTHING comes 
close to unclear perl code
http://www.faqs.org/faqs/computer-lang/awk/faq/


  • Prev by Date: Re: pattern matching and droping elements from list of lists.
  • Next by Date: Re: pattern matching and droping elements from list of lists.
  • Previous by thread: Re: Pad a sign - and + to a list of lists
  • Next by thread: Re: Pad a sign - and + to a list of lists