The difficulty of reading this line may be emphasized by the fact that no
one seemed to notice that it has a dyadic interpretation which gives
different answers.  I suspect from the discussion that this dyadic use is
unintended.

Before I noticed this, based on my initial interpretation, I would have
written this

   (3 : '+/ ,".&> ({.@:":) &.> p: i. y')"0 ] 2 3 10 15
5 10 25 43

which I rind easier to read than the original.

   ([: +/ [: > [: ".&.> [: [ [: {.&.> [: [ [: ":&.>@p: i.) &> 2 3 10 15
5 10 25 43

The dyadic use seems mostly to return "3", so is probably unintended:

   1 ([: +/ [: > [: ".&.> [: [ [: {.&.> [: [ [: ":&.>@p: i.) &> 2 3 10 15
3 3 3 3
   3 ([: +/ [: > [: ".&.> [: [ [: {.&.> [: [ [: ":&.>@p: i.) &> 2 3 10 15
3 2 3 3


On Tue, Nov 16, 2010 at 9:31 AM, R.E. Boss <[email protected]> wrote:

> I totally disagree with the existence of another J-forum outside the ones
> from Jsoftware, like the one you are promoting.
>
> And if you are cross posting, it would be (a lot) more polite if you would
> give the background as well, instead of asking the members of this forum to
> sign in to your group.
>
>
> R.E. Boss
>
>
> > -----Oorspronkelijk bericht-----
> > Van: [email protected] [mailto:programming-
> > [email protected]] Namens Björn Helgason
> > Verzonden: maandag 15 november 2010 17:44
> > Aan: Programming forum
> > Onderwerp: Re: [Jprogramming] tacit programming
> >
> > See it her
> > http://groups.google.com/group/j-
> > programming/browse_frm/thread/478a42f97b24d8e3
> >
> > 2010/11/15 Kip Murray <[email protected]>
> >
> > > Why not show us how you would program the line explicitly?
> > >
> > > On 11/15/2010 9:38 AM, Björn Helgason wrote:
> > > > It would be interesting to know how many J ers can easily read
> > tacit
> > > > programs.
> > > >
> > > > A line like
> > > >
> > > > [: +/ [:>  [: ".&.>  [: [ [: {.&.>  [: [ [: ":&.>@p: i.
> > > >
> > > > This is something I am not too comfortable to read nor write just
> > like
> > > that
> > > > even if I do know what it is supposed to do.
> > > >
> > > > Question is if people see it as a better way to program like this
> > tacitly
> > > > than just do it in more lines and easily understood steps?
> > > >
> > > ---------------------------------------------------------------------
> > -
> > > For information about J forums see
> > http://www.jsoftware.com/forums.htm
> >
> >
> >
> >
> > --
> > Björn Helgason, Verkfræðingur
> > Fornustekkum II
> > 781 Hornafirði,
> > t-póst: [email protected]
> > gsm: +3546985532
> > sími: +3544781286
> > http://groups.google.com/group/J-Programming
> >
> >
> > Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari
> > einfaldleikans
> >
> > góður kennari getur stigið á tær án þess að glansinn fari af skónum
> >           /|_      .-----------------------------------.
> >          ,'  .\  /  | Með léttri lund verður        |
> >      ,--'    _,'   | Dagurinn í dag                     |
> >     /       /       | Enn betri en gærdagurinn  |
> >    (   -.  |        `-----------------------------------'
> >    |     ) |         (\_ _/)
> >   (`-.  '--.)       (='.'=)   ♖♘♗♕♔♙
> >    `. )----'        (")_(") ☃☠
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to