Also

      ]h=: 13 :'(+: ^: _1)  ^. +: y'
] ([: +:^:_1 [: ^. +:)
   h 123
2.75267

--Kip Murray


On Wednesday, May 21, 2014, Henry Rich <[email protected]> wrote:

> The result of b. is always a character list, NOT a verb.  You would need
> to convert it to a verb before using it as you have.  Perhaps
>
> h=: 13 :'(+: b. _1) 128!:2  ^. +: y'
>    h 123
> 2.75267
>
> Henry Rich
>
> On 5/21/2014 11:02 PM, Linda Alvord wrote:
> >      u&.v y ↔ vi u v y
> >
> >     +: b. _1
> > -:
> >
> >     f=: 13 :'^.&.+: y'
> >     f
> > ^.&.+:
> >     5!:4 <'f'
> >         ┌─ ^.
> > ── &. ─┴─ +:
> >     f 123
> > 2.75267
> >
> >     g=: 13 :'-:^.+: y'
> >     g
> > [: -: [: ^. +:
> >     5!:4 <'g'
> >    ┌─ [:
> >    ├─ -:
> > ──┤    ┌─ [:
> >    └────┼─ ^.
> >         └─ +:
> >     g 123
> > 2.75267
> >
> >     h=: 13 :'(+: b. _1)  ^. +: y'
> >     h
> > '-:' ^. +:
> >     5!:4 <'h'
> >    ┌─ '-:'
> > ──┼─ ^.
> >    └─ +:
> >     h 123
> > |domain error: h
> > |       h 123
> > |[-17] c:\users\owner\j802-user\temp\5.ijs
> >
> > There are  single quotes that are causing trouble.
> >
> > Linda
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm



-- 
Sent from Gmail Mobile
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to