Python and Ruby
arnodel at googlemail.com
Mon Feb 1 01:14:52 CET 2010
Steven D'Aprano <steve at REMOVE-THIS-cybersource.com.au> writes:
> On Sun, 31 Jan 2010 04:28:41 -0800, Ed Keith wrote:
>> In most functional languages you just name a function to access it and
>> you do it ALL the time.
>> for example, in if you have a function 'f' which takes two parameters to
>> call the function and get the result you use:
>> f 2 3
>> If you want the function itself you use:
> How do you call a function of no arguments?
In a functional language, a function of no arguments will always return
the same value. So, from a non-functional point of vue, f is both the
function and its value.
More information about the Python-list