On Fri, Aug 21, 2009 at 3:18 PM, David Mitchell<[email protected]> wrote: > Raul Miller wrote: >> On Thu, Aug 20, 2009 at 12:28 PM, Dan Bron<[email protected]> wrote: >>> ae =: + 1 : (LF -.~ 0 : 0) >>> ((((((("_)(`''))(<@((,'0') ; <@])`))(`(<(,'0');0)))(`: >>> 6))(('@.' ; (,&<&((,'0') ; <@]) ((;:'()') >@:{.^:(1 = >>> #)L:1^:_@:(>@:{.L:1)@:((('';1) <@:,;.1 ] <@:(}.@:}:^:( >>> 1 < #));.2&>~ (= <./)&.>@:{:)L:1^:(1 + >./@:>@:{:))@:( >>> �...@#@] ,&< +/\@:(-/)@:(=/)) ]))@:((((,'0') ; <@])@:".@ >>> :]^:[&.>~ ([: (('''' = {.) +. (':' ~: {:) *. '_0123456 >>> 789' e.~ {.)@|: 2 {.&> ]))@:;:))`))(`:6))(@.1 0 2) >>> ) >> >> This gives me a syntax error when I execute it. > > I had to put it in an ijs and remove the tabs from the start of all the lines > after the first.
This works. Which leaves me with an issue which I think might even be appropriate for general: When I define a verb, ae works F=: +/ % # 'F'ae +/ % # However, if I have J display the linear (or parenthesized) form of ae, wrap that in parenthesis and pass 'F' as its left argument, I get a domain error. -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
