|
[Date Index]
[Thread Index]
[Author Index]
Switch and List: How to combine?
- To: mathgroup at yoda.physics.unc.edu
- Subject: Switch and List: How to combine?
- From: fink at acf5.nyu.edu (Howard Fink)
- Date: Tue, 8 Oct 91 10:57:52 -0400
How do I use a list within Switch?
Switch[expr,form1,val1,form2,val2,...] evaluates expr, matches it to form i,
and returns val i, if there's a match, Null otherwise. When I put in a list
{form1,val1,form2,val2,...} Mathematica treats it as a single object, and
for the life of me I can't strip off the curly brackets. The closest I came
was with Sequence, which replaced the curly brackets with parentheses.
Howard Fink
fink at acf5.nyu.edu
Prev by Date:
Looking for InverseLaplace.m ...
Next by Date:
accuracy
Previous by thread:
Looking for InverseLaplace.m ...
Next by thread:
Re: Switch and List: How to combine?
|