Re: Questions - Higer Order Functions
- From: tar@xxxxxxxxxxxxx (Thomas A. Russ)
- Date: 30 Apr 2008 09:44:03 -0700
"rigaha@xxxxxxxxx" <rigaha@xxxxxxxxx> writes:
2. In practice, are functions that return functions used frequently?
Well, this one of course depends on what you are doing. Some
applications find it very helpful to write functions that return other
functions. Loom <http://www.isi.edu/isd/LOOM/> make great use of this
in order to very efficiently compute what were in effect queries by
constructing a program that executed an optimized search over its
knowledge base. In the case of certain defined concepts and relations,
those queries were compiled and stored as compiled functions for future
use.
This also allowed for easy implmentation of a general query facility as
a macro, since a macro can be seen as embodying a function that returns
a function.
--
Thomas A. Russ, USC/Information Sciences Institute
.
- References:
- Questions - Higer Order Functions
- From: rigaha@xxxxxxxxx
- Questions - Higer Order Functions
- Prev by Date: Re: Questions - Higer Order Functions
- Next by Date: Re: Greenspunning ML (revisited)
- Previous by thread: Re: Questions - Higer Order Functions
- Next by thread: hierarchical data in clips
- Index(es):