Very neat -- thanks Raul!

On Thu, Oct 9, 2014 at 2:03 PM, Raul Miller <[email protected]> wrote:
> To clear up a point raised in an off-list discussion, consider this:
>
>   3 :'r=.2 assert. 5=r=.r+3 assert. 10=r=.r+5' 0
>
> According to http://www.jsoftware.com/help/dictionary/ctrl.htm
>
> Control words are used in Explicit Definition (:) and are punctuation that
> determine the sequence of execution.
>
> So J sentences in an explicit definition are separated by control words and
> the control words determin the order of execution of those sentences.
>
> In the case of assert, that order of execution is left to right. You can
> put an assert on a line to have it verify the result computed on its left
> hand side.
>
> Thanks,
>
> --
> Raul
>
> On Wed, Oct 8, 2014 at 11:22 PM, Raul Miller <[email protected]> wrote:
>
>> You know what this expression will give, yes?
>>
>>    3 :'2 assert. 1' 0
>>
>> --
>> Raul
>>
>>
> ----------------------------------------------------------------------
> 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