Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • $\begingroup$ I saw something like that already. It wraps Mean in a lambda function. Am I right? $\endgroup$ Commented Dec 8, 2019 at 16:39
  • $\begingroup$ I'm not 100% sure I know what a lambda function is... the first one operates by placing the argument 1175., 247 where the # is, so that the two numbers are placed into a list (as required by Mean). The second works the opposite, by separating the list argument into its two components (as required by Subtract). $\endgroup$ Commented Dec 8, 2019 at 16:43
  • 1
    $\begingroup$ @SylvainLeroux Mathematica's equivalent of a lambda function is referred to as a "Pure" function. See the help on Function for an explanation. $\endgroup$ Commented Dec 8, 2019 at 16:47
  • 2
    $\begingroup$ I think the first one should be Mean[{##}]& - otherwise, you will keep only the first argument $\endgroup$ Commented Dec 9, 2019 at 10:45
  • $\begingroup$ You're right @Lukas. I' editing Bill's answer with that. I add en extra explntion of the problem, since one-character edits are not allowed. Feel free to edit that if I was wrong. $\endgroup$ Commented Dec 9, 2019 at 15:22