On Thu, Sep 8, 2011 at 3:43 PM, Steven Taylor <[email protected]> wrote:
> 4 train ::iFailed i.4
>
> it took me a while to see the significance of "do bind" in iFailed.  I see
> the need now, but not yet fully.
>
> Do: Okay.  No problem.
>
> Bind: it's a conjunction.  Rightmost y is a verb of infinite rank.
>
> Is Bind
>
>  2: 'x@(y"_)'
>
> similar to
>
>  @:

   do@('fail=:1'"_)

Here 'fail=:1'"_ is a constant function which always returns the
result 'fail=:1'

An equivalent mechanism would be:

iFailed=: 3 :0
   fail=:1
:
   fail=:1
)

But why specify the expression twice when all I really want to do is
ignore the argument(s)?

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to