Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*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 2005

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

Search the Archive

(lack of) arguments to lists and joins thereof

  • To: mathgroup at smc.vnet.net
  • Subject: [mg62492] (lack of) arguments to lists and joins thereof
  • From: "Chris Chiasson" <chris.chiasson at gmail.com>
  • Date: Sat, 26 Nov 2005 02:46:42 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

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?