Newbie Question Is it allowed for the function to change
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 106 articles for 0.022 sec
Re: Newbie Question: Is it allowed for the function to change the value of parameters?     

Group: comp.lang.functional · Group Profile · Search for Newbie Question Is it allowed for the function to change in comp.lang.functional
Author: Markus E.L.
Date: Jul 31, 2007 06:04

... I am really new to functional programming. I am just wondering if it is theoretically allowed to for the function to change the value of ... time I labelled Lisp as a functional language on c.l.lisp) ... functions as arguments), and constructing functions at run-time and passing them around ...> Then Python and Javascript are functional languages too. These things don't ...
Show full article (1.19Kb) · Show article thread
Re: Newbie Question: Is it allowed for the function to change the value of parameters?     

Group: comp.lang.functional · Group Profile · Search for Newbie Question Is it allowed for the function to change in comp.lang.functional
Author: Joachim Durchholz
Date: Jul 27, 2007 04:36

... I am really new to functional programming. I am just wondering if it is theoretically allowed to for the function to change the value of ... functions as arguments), and constructing functions at run-time and passing them around...functions as first-class citizens", "functions are values"). These things don't go...side effects - if you construct a function and pass it around, you lose...
Show full article (1.19Kb) · Show article thread
Re: Newbie Question: Is it allowed for the function to change the value of parameters?     

Group: comp.lang.functional · Group Profile · Search for Newbie Question Is it allowed for the function to change in comp.lang.functional
Author: Bruno Desthuilliers
Date: Jul 25, 2007 13:02

...>>> I am really new to functional programming. I am just wondering if... is theoretically allowed to for the function to change the value ... I labelled Lisp as a functional language on c.l.lisp)... as arguments), and constructing functions at run-time and passing them ... Then Python and Javascript are functional languages too. These things don't... it's ok for a function to modify the state of ...
Show full article (1.33Kb) · Show article thread
Re: Newbie Question: Is it allowed for the function to change the value of parameters?     

Group: comp.lang.functional · Group Profile · Search for Newbie Question Is it allowed for the function to change in comp.lang.functional
Author: beginner
Date: Jul 24, 2007 17:54

...> is theoretically allowed to for the function to change the value of ...> the parameters? No, not in pure functional programming. In pure FP, you're .... Is this generally acceptable practice in functional programming? In pure FP, your function ... it creates a new value without changing the old ones. How about this:.... It clears up a big question for me. Then I guess it ...
Show full article (1.03Kb) · Show article thread
Re: Newbie Question: Is it allowed for the function to change the value of parameters?     

Group: comp.lang.functional · Group Profile · Search for Newbie Question Is it allowed for the function to change in comp.lang.functional
Author: Dan Bensen
Date: Jul 24, 2007 11:07

...it is theoretically allowed to for the function to change the value of the parameters? No, not in pure functional programming. In pure FP, you're not... f(list): list.append("a") will change the list passed in. Is this generally acceptable practice in functional programming? In pure FP, your function ... it creates a new value without changing the old ones. How about this:...
Show full article (0.74Kb) · Show article thread
Re: Newbie Question: Is it allowed for the function to change the value of parameters?     

Group: comp.lang.functional · Group Profile · Search for Newbie Question Is it allowed for the function to change in comp.lang.functional
Author: Markus E Leypold
Date: Jul 24, 2007 09:03

...> is theoretically allowed to for the function to change the value of...in the section indicated by '...'. In functional languages a program just produces values...Is this generally acceptable practice in functional programming? Depends. There is a wide spectrum of languages called functions: From Scheme, Lisp, Ocaml to ...Still Python? What actually is the question here? Wether this is good? ...
Show full article (2.92Kb) · Show article thread
Newbie Question: Is it allowed for the function to change the value of parameters?     

Group: comp.lang.functional · Group Profile · Search for Newbie Question Is it allowed for the function to change in comp.lang.functional
Author: beginner
Date: Jul 24, 2007 08:04

Hi, I am really new to functional programming. I am just wondering if it is theoretically allowed to for the function to change the value of the parameters? ... f(list): list.append("a") will change the list passed in. Is this generally acceptable practice in functional programming? How about this: list=[] f...x) Now I just defined a function that has side effects? Thanks, ...
Show full article (0.50Kb)
Re: Newbie Question: Is it allowed for the function to change the value of parameters?     

Group: comp.lang.functional · Group Profile · Search for Newbie Question Is it allowed for the function to change in comp.lang.functional
Author: Bruno Desthuilliers
Date: Jul 21, 2007 23:28

... is theoretically allowed to for the function to change the value of ... type names for identifiers </OT> will change the list passed in. Is this generally acceptable practice in functional programming? No. A true FP solution ... FP idioms, Python is *not* a functional language. How about this: list=[] ... Now I just defined a function that has side effects? Indeed. ...
Show full article (1.02Kb)
Re: Newbie Question: Is it allowed for the function to change the value of parameters?     

Group: comp.lang.functional · Group Profile · Search for Newbie Question Is it allowed for the function to change in comp.lang.functional
Author: Jon Harrop
Date: Aug 12, 2007 11:30

... a form that cannot appear in source code. That's rather a grim solution, IMHO. I think you can always avoid it with judicious use of closures... No. You could use functional abstraction for derived forms of expressions, but it doesn't save you for other phrase classes such as types, declarations, modules, signature specifications... Oh right. Hadn't thought of those. ...
Show full article (0.75Kb) · Show article thread
Re: Newbie Question: Is it allowed for the function to change the value of parameters?     

Group: comp.lang.functional · Group Profile · Search for Newbie Question Is it allowed for the function to change in comp.lang.functional
Author: Bruno Desthuilliers
Date: Aug 5, 2007 04:53

... online resource on this that a mathematics-illiterate self-taught programmer could understand ? Since you use Python, you might like this: http://lukeplant.me.uk/blog.php?id=1107301643 IO in Haskell is done by threading the "outside world" through a chain of neste function calls like the monads described in that blog post. Thanks for the link - looks interesting.
Show full article (0.79Kb) · Show article thread
1 · 2 · 3 · 4 · 5 · 6 · 7 · 8 · 9 · next