Re: Functional programming?
- To: mathgroup at smc.vnet.net
- Subject: [mg91974] Re: Functional programming?
- From: "David Park" <djmpark at comcast.net>
- Date: Mon, 15 Sep 2008 03:43:09 -0400 (EDT)
- References: <firstname.lastname@example.org>
>From the Help page, go to Core Language, Functional Programming. Then just try out these commands. There was another posting today titled 'eliminate values while calculating Mean[data]' by Pasha Karami in which he wanted to eliminate zero values from a list of data. This is very easily done with the Functional Programming Select command. You don't even have to know how long the list is. So why don't you show us how you would do it with the For or Do command, without using any Functional Programming? Certainly it can be done, but after seeing Select are you still always going to do it with Procedural Programming in the future? Suppose you want to select values from a list that are between 1 and 6 in value. How would you do it with Procedural Programming without using any Functional Programming? -- David Park djmpark at comcast.net http://home.comcast.net/~djmpark/ "AES" <siegman at stanford.edu> wrote in message news:gag2ra$3f9$1 at smc.vnet.net... >I suggest it might be instructive if some of the functional programming > proponents on this group could provide us DO-looping old timers with a > brief summary or tutorial as to what is really meant by, or involved in, > "functional programming"? > > --- especially as this concept might relate to building programs to do > calculations involving multi-stage real-world engineering or technical > problems > > --- and especially as it might relate to programs that are going to be > developed in an evolutionary process and that in the end, rather than > being built into some long-term library, are maybe only going to be run > or executed a few times before the person involved (e.g., an engineer, > or scientist, or other real-world individual, not a "programmer") moves > on to some other totally different task or assignment. >