MathGroup Archive 2005

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

Search the Archive

(lack of) arguments to lists and joins thereof


Heads up :]

In[4]:=
Join[{1,2},List]
Join[{1,2},List[]]
Join[{1,2},List[Null]]
Out[4]=
Join[{1,2},List]
Out[5]=
{1,2}
Out[6]=
{1,2,Null}

In the code I am writing, I need to use List[] to obtain the result I
want.

I thought this was interesting given the warnings generated if one
tries to save a cell containing, say, "function[a,b,c,]" (it would tell
one to use "function[a,b,c,Null]") to a package (.m). Until now, I was
unaware of a difference between "function[Null]" and "function[]",
probably from lack of experience.

Regards,
--
http://chrischiasson.com/contact/chris_chiasson


  • Prev by Date: Re: How to View Mathematica and Hardcopy Books
  • Next by Date: Re: SugarCube
  • Previous by thread: RE: Saving Points Selected from a ListPlot
  • Next by thread: Smooth the data in a table, Why this cannot work?