Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #11286 > unrolled thread
| Started by | James Stein <mathgroup@stein.org> |
|---|---|
| First post | 2012-08-09 01:36 +0000 |
| Last post | 2012-08-09 01:36 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Symmetrizing function arguments James Stein <mathgroup@stein.org> - 2012-08-09 01:36 +0000
| From | James Stein <mathgroup@stein.org> |
|---|---|
| Date | 2012-08-09 01:36 +0000 |
| Subject | Re: Symmetrizing function arguments |
| Message-ID | <jvv466$pqq$1@smc.vnet.net> |
This may help: 'f' takes 2 or more arguments,
then passes them in 'g' in your desired order:
Clear[f, g];
f[a_, b__] := g[Apply[Sequence, Sort[{a, b}] // Reverse]]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web