For some value of "improve":
] {~ [: <: [
On Tue, Jul 27, 2010 at 9:52 AM, Andrew Nikitin <[email protected]> wrote:
>
> Alex, I think you are not living up to your Technical Consultant II title.
> This is the least you could have done to be considered an honest
> effort:
>
> from=:4 : 0
> NB. indices-of-elements (IO=1) from y
> NB. IO based indices of data to retrieve
> indices=.x
> NB. data array to be used
> data_array=.y
> NB. index origin
> IO=.1
>
> NB. calculate indices in J array that correspond to the indexed locations
> standardized_indices=.indices-IO
>
> NB. extract values from data array according to indices
> result=.standardized_indices { data_array
>
> result
> NB. terminate the procedure
> return.
> )
>
> (Anyone dares to improve on this code?)
>
> > Alex Rufon:
> > from
> > +-+-+-------------------------------------+
> > |4|:|NB. indices-of-elements (IO=1) from y|
> > | | |(_1 + x) { y |
> > +-+-+-------------------------------------+
>
> _________________________________________________________________
> The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with
> Hotmail.
>
> http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5
> ----------------------------------------------------------------------
> 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