Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: Style for function calls?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg97178] Re: Style for function calls?
  • From: "D. Grady" <D.C.Grady at gmail.com>
  • Date: Sat, 7 Mar 2009 02:39:19 -0500 (EST)
  • References: <goqpg6$lsb$1@smc.vnet.net>

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?