Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: new functional operator
Replies: 27   Last Post: Jun 3, 2012 5:05 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
roby.nowak@gmail.com

Posts: 86
Registered: 5/8/07
new functional operator
Posted: Mar 3, 2012 6:52 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Dear Group and Mathematica staff.

In the functional programming spirit I am missing a postfix notation
for Map[ ].

Du to its clarity I often prefer the sequentiall postfix style
processing of expressions and data:
e.g.

data//F1//F2//F3


but what if our data is a List and the functions we want to perform on
don't have the Listable Attribute ?.
the clumsy solution now is:

data//F1/@#&//F2/@#&//F3/@#&



therefor I suggest a new functional operator, which e.g. could look
like this: ///
such that my favorit expression would appear in this nice and clear
form:

data///F1///F2///F3


In other words the new /// operator should temporarily activate the
Listable Atrribute for the affected function


any comments welcome

Robert




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.