Re: Pad a sign - and + to a list of lists
- To: mathgroup at smc.vnet.net
- Subject: [mg49767] Re: Pad a sign - and + to a list of lists
- From: BobHanlon at aol.com
- Date: Fri, 30 Jul 2004 06:02:19 -0400 (EDT)
- 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}}
};
Append[#, string]& /@ data
Append[#, "-"]& /@ data
Bob Hanlon
> In a message dated Thu, 29 Jul 2004 12:30:53 +0000 (UTC),
> sean_incali at yahoo.com writes: 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},-}
>