|
[Date Index]
[Thread Index]
[Author Index]
FW: Re: Length of actual parameters in a function call. (Plus how to organize mathematica stuff)
- To: mathgroup at smc.vnet.net
- Subject: [mg47582] FW: [mg47498] Re: Length of actual parameters in a function call. (Plus how to organize mathematica stuff)
- From: "E. Martin-Serrano" <eMartinSerrano at houston.rr.com>
- Date: Fri, 16 Apr 2004 05:21:38 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Yes Torben!
You are right; it is exactly what I was looking for. Besides,
to all those who responded to my posted, many thanks; in fact, I had begun to
use the proposed solutions.
By the way, I have plenty of badly-organized Mathematica stuff from different
sources, and I am struggling to put some order on it. I would like to use some
arrangement of (Windows) folders accessible through shortcuts which content
could be illustrated by icons.
Does anyone know about a collection of Mathematica-shaped icons that
could be used to help in this purpose?
Emilio.
-----Original Message-----
From: Torben Winther Graversen [mailto:immtwg at bohr.gbar.dtu.dk]
To: mathgroup at smc.vnet.net
Subject: [mg47582] [mg47498] Re: Length of actual parameters in a function call.
E. Martin-Serrano <eMartinSerrano at houston.rr.com> wrote:
: Hi,
: A few weeks ago, reviewing some tutorials on pattern matching and error
: handling, I came across an undocumented function to monitor the number of
: parameters submitted to a function in a call; but somehow I lost its track
: later. I guess that it must be something well-known by our specialists.
Any
: help about where to locate it?
: The undocumented feature helps in tracking situations as when we define
: "MyFunction[a_,b_,c_]:= something" and then it is called as
"myFunction[a]"
: leaving the function unevaluated.
Hi,
Perhaps the one you are looking for is ArgumentCountQ ?
I stumbled on it a few days ago on Ted Ersek's Tricks page:
http://www.verbeia.com/mathematica/tips/HTMLLinks/Tricks_210.html
The documentation on Wolfram's site is at:
http://support.wolfram.com/mathematica/kernel/Symbols/System/ArgumentCountQ.
html
ArgumentCountQ[head,len,min,max] tests whether the number len of
arguments of a function head is between min and max.
Regards,
Torben
Prev by Date:
RE: Re: DirectMath experience
Next by Date:
Re: DisplayForm changes precission
Previous by thread:
Re: Saving as HTML -- Page width problems
Next by thread:
Programming style
|