Re: Symmetrizing function arguments
- To: mathgroup at smc.vnet.net
- Subject: [mg127629] Re: Symmetrizing function arguments
- From: James Stein <mathgroup at stein.org>
- Date: Wed, 8 Aug 2012 21:36:00 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-newout@smc.vnet.net
- Delivered-to: mathgroup-newsend@smc.vnet.net
- References: <30176350.22535.1344323226826.JavaMail.root@m06> <20120808071905.D9349685E@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]]
- References:
- Re: Symmetrizing function arguments
- From: "djmpark" <djmpark@comcast.net>
- Re: Symmetrizing function arguments