[Jprogramming] Constant functions

Raul Miller rauldmiller at gmail.com
Sun Feb 14 22:52:29 HKT 2010


On Sun, Feb 14, 2010 at 9:43 AM, Ian Clark <earthspotty at googlemail.com> wrote:
> Does anyone have a really good example of using a constant function
> (e.g. 0: 1: ...) where it is actually necessary?
> Gene McDonnell uses a lot of them in At Play With J, but in the
> examples I've tried, 0 works just as well as 0: ...and so on.

After At Play With J was written, J was changed so that expressions
of the form  (NOUN VERB VERB) would be treated as if they were
the fork (NOUN"_ VERB VERB).  In other words, 0 is a constant
function in the examples you were suggesting.

-- 
Raul


More information about the Programming mailing list