[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How do I determine if a function is defined?
From: |
Clinton Ebadi |
Subject: |
Re: How do I determine if a function is defined? |
Date: |
Sun, 28 Apr 2002 15:15:59 -0400 |
On Sunday 28 April 2002 14:05, Bruce Korb wrote:
> Hi,
>
> I keep trying obvious things, like:
>
> (if (function? mumble) (mumble))
>
> and get:
>
> ERROR: Unbound variable: mumble
>
> and then it dies. I just want to do one thing if it is
> a function and another if it is either undefined or even
> anything else. How to do that seems completely non-obvious.
> Thank you.
Try (if (procedure? 'mumble) (mumble)). Remember to quote the variable you
want to test!