Mathematica 9 is now available
Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2000

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

Search the Archive

Appending an element to a list

  • To: mathgroup at
  • Subject: [mg23880] Appending an element to a list
  • From: Felix Farkas <farkas at>
  • Date: Thu, 15 Jun 2000 00:51:16 -0400 (EDT)
  • Organization: EPFL
  • References: <WIl15.112$>
  • Sender: owner-wri-mathgroup at

 i do have a problem, which is probably very easy,  but i couldn't find
a reasonable way to solve it. I would appreciate very much any hint.

I have a list of lists. My purpose is to append a new elements to this
list. These elements are generated by some function. Sometimes the
output of the function is an empty list meaning no element. In this
situation Append includes the new element in the list. i would like to
avoid this behaviour.


In[1]:=           d={}
Out[1]=         {}

In[2]:=           Append[{{2,2},{3,3}},d]
Out[2]:=        {{2,2},{3,3},{}}

Thanks in advance. Felix Farkas

  • Prev by Date: Appending an element to a list
  • Next by Date: Problem with implementing the following functions
  • Previous by thread: Appending an element to a list
  • Next by thread: RE: Appending an element to a list