Actually, anything with non-deterministic results cannot be a
function.  In a function, a single value maps to a single result.

It can be a verb, but in the context of the power conjunction (which
is built to deal with functions) you will often get a result which
terminates with an unlimited repeat spec, even though hypothetically
speaking you could be getting different results.

-- 
Raul

On Sat, Dec 15, 2012 at 8:22 AM, Don Guinn <[email protected]> wrote:
> fR is not a function in your example. You can make it a function like so:
>    fR=:3 : '?10'
>    ((fR , ])^: 3)''
> 5 3 9
>    ((fR , ])^: 3)''
> 8 3 1
>
> On Sat, Dec 15, 2012 at 4:34 AM, Dr. Heinz Schild <
> [email protected]> wrote:
>
>> A Power Conjunction normally evaluates a function, here rF, only on the
>> first call. Is there a way to compute the value of such a function on each
>> call?
>> An example:
>>         fR =: ?10
>>         ((fR , ])^: 3)''
>> 6 6 6
>> Regards
>> Heinz
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to