Worse... I work around this... whatever it is.. by changing the definition:

$ ijconsole
   appendbox=:1 : 0
  y
:
  pfx=. ,1 4{.y
  assert. pfx-:,_1 4{.y
  if. ' ' e. pfx do. '' return. end.
  prefix=. (2{.pfx),'/',pfx
  dir=: 'Reference/',prefix
  (;x,&.>LF) fileappend dir,'/data06.txt'
)
   1 'a' appendbox 2
|value error: y
|       y
   9!:14''
j701/2011-01-10/11:25


How can I be getting a value error on y? Why is the monadic definition
being used in the dyadic case? How can I get anything done when things are
this crazy?

Can anyone else reproduce this?

Thanks,

-- 
Raul






On Wed, Oct 8, 2014 at 11:22 AM, Raul Miller <[email protected]> wrote:

> I paste a definition into my J session:
>
>    appendbox=:1 :0
> :
>   pfx=. ,1 4{.y
>   assert. pfx-:,_1 4{.y
>   if. ' ' e. pfx do. '' return. end.
>   prefix=. (2{.pfx),'/',pfx
>   dir=: 'Reference/',prefix
>   (;x,&.>LF) fileappend dir,'/data06.txt'
> )
>
> And then I inspect the name
>
>    appendbox
> 1 : 0
>   pfx=. ,1 4{.y
>   assert. pfx-:,_1 4{.y
>   if. ' ' e. pfx do. '' return. end.
>   prefix=. (2{.pfx),'/',pfx
>   dir=: 'Reference/',prefix
>   (;x,&.>LF) fileappend dir,'/data06.txt'
> )
>
> Somehow my adverb has mutated.
>
> What is going on here?
>
> Thanks,
>
> --
> Raul
>
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to