MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Style for function calls?


Often I'll use the prefix notation when I'm doing some kind of multi-
step processing of a chunk of data.  This is particularly elegant for
functions that take one argument:

Most@
 ArrayRules@
  fluxTable@
   data

It also works for functions that take data and parameters, though:

(GatherBy[#, First] &)@
 (StringSplit[#, ":"] &)@
  data

This style of structuring code is great help to me; you could give it
a shot and see how you like it.

-Daniel


  • Prev by Date: Wolfram/Alpha
  • Next by Date: When a string does not match itself
  • Previous by thread: Re: Style for function calls?
  • Next by thread: Re: Style for function calls?