Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #11286 > unrolled thread

Re: Symmetrizing function arguments

Started byJames Stein <mathgroup@stein.org>
First post2012-08-09 01:36 +0000
Last post2012-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.


Contents

  Re: Symmetrizing function arguments James Stein <mathgroup@stein.org> - 2012-08-09 01:36 +0000

#11286 — Re: Symmetrizing function arguments

FromJames Stein <mathgroup@stein.org>
Date2012-08-09 01:36 +0000
SubjectRe: 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]]

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web