Nice!

And apart from this, what about elegance?


R.E. Boss


> -----Oorspronkelijk bericht-----
> Van: programming-boun...@jsoftware.com [mailto:programming-
> boun...@jsoftware.com] Namens Aai
> Verzonden: vrijdag 9 december 2011 19:44
> Aan: Programming forum
> Onderwerp: Re: [Jprogramming] FW: A simple function
> 
> On 09-12-11 18:49, Raul Miller wrote:
> > Because, in general, J works best when the mass handling of data is
> > done through simple operations.
> >
> > And, specifically, #/.~ is supported by special code:
> > http://www.jsoftware.com/help/release/key503.htm
> >
> Well, how about
> 
>     r=.1e6 ?@$9
>     ts '({.,#)/.~r'
> 0.007779 1344
> 
>     ts '(~.,#)/.~r'
> 0.083331 1.46822e7
> 
> 
> ----------------------------------------------------------------------
> 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