Sorry, wrong solution, does not work in general.

R.E. Boss


> -----Oorspronkelijk bericht-----
> Van: Programming <[email protected]>
> Namens R.E. Boss
> Verzonden: donderdag 31 oktober 2019 19:14
> Aan: [email protected]
> Onderwerp: Re: [Jprogramming] odds and nths
> 
> And minus another one:
> 
>    3(]#~<:@[=|)i.8
> 2 5
> 
> 
> R.E. Boss
> 
> 
> > -----Oorspronkelijk bericht-----
> > Van: Programming <[email protected]>
> > Namens Raul Miller
> > Verzonden: donderdag 31 oktober 2019 18:27
> > Aan: Programming forum <[email protected]>
> > Onderwerp: Re: [Jprogramming] odds and nths
> >
> > One character shorter:
> >
> >    3(]#~0=(|#\))i.8
> > 2 5
> >
> > Thanks,
> >
> > --
> > Raul
> >
> > On Thu, Oct 31, 2019 at 12:43 PM Henry Rich <[email protected]>
> wrote:
> > >
> > >     3 ({:;._3~ ,:~)~ i. 8
> > > 2 5
> > >
> > > Henry Rich
> > >
> > > On 10/31/2019 12:33 PM, Lorenz Köhl wrote:
> > > > NB. get items with odd index
> > > > odd=. ] #~ 0 1 $~ #
> > > >
> > > > Generalizing this I got
> > > >
> > > > NB. get the nth items
> > > > nth=. ] #~ (1 ,~ 0 $~ 1 -~ [) $~ [: # ]
> > > >
> > > > I bet this is not the shortest version!
> > > >
> > > > I tried infix but it includes fret/fill
> > > >
> > > > wrong_odd=. [: {: [: |: _2 ]\ ]
> > > >
> > > > happy halloween
> > > >
> > > > Lo
> > > > ------------------------------------------------------------------
> > > > --
> > > > -- For information about J forums see
> > > > http://www.jsoftware.com/forums.htm
> > >
> > >
> > > --
> > > This email has been checked for viruses by AVG.
> > > https://www.avg.com
> > >
> > > --------------------------------------------------------------------
> > > --
> > > For information about J forums see
> > http://www.jsoftware.com/forums.htm
> > ----------------------------------------------------------------------
> > For information about J forums see
> http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to