Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

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: [mg49758] Re: [mg49728] Pad a sign - and + to a list of lists
  • From: DrBob <drbob at bigfoot.com>
  • Date: Fri, 30 Jul 2004 06:02:10 -0400 (EDT)
  • References: <200407291145.HAA10322@smc.vnet.net>
  • Reply-to: drbob at bigfoot.com
  • Sender: owner-wri-mathgroup at wolfram.com

data={{{1,1}},{{1,2}},{{1,3}},{{2,1}},{{2,2}},{{2,3}},{{3,1}},{{3,2}},{{3,3}}};
data/.{{a_,b_}}->{{a,b},"-"}

{{{1,1},-},{{1,2},-},{{1,3},-},{{2,1},-},{{2,2},-},{{2,3},-},{{3,1},-},{{3,
     2},-},{{3,3},-}}

Bobby

On Thu, 29 Jul 2004 07:45:30 -0400 (EDT), sean kim <sean_incali at yahoo.com> 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
>
>
>



-- 
DrBob at bigfoot.com
www.eclecticdreams.net


  • Prev by Date: uniquely change curve colors and make them darker
  • 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