function_name

Gamma: Version 4.0
Prev |  | Next

# `function_name`

`function_name` -- gives the name of a function.

## Syntax

    function_name (function)

## Arguments

`function`

  Any function.

## Returns

The name of the function.

## Example

        Gamma> function grand(a,b,c) {(a * b)/c;}
        (defun grand (a b c) (/ (* a b) c))
        Gamma> function_name(grand);
        grand
        Gamma> s = grand;
        (defun grand (a b c) (/ (* a b) c))
        Gamma> function_name(s);
        grand

        Gamma> function f () { nil; }
        (defun f () nil)
        Gamma> function g (x) { princ (function_name(x), "\n"); }
        (defun g (x) (princ (function_name x) "\n"))
        Gamma> g (f);
        f
        t
        Gamma>

## See Also

`function_args`, `function_body`

Prev | Home | Next
`function_body` | Up | `getprop`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.