Hhahahaha. Thanks Andrew, you made my day. My only defense is that code was written in 2004 with J5 and I was just a J youngling then. ;) Around that time, I still could not imagine how to write tacit code ...
I would boast that I'm a master but I'm just really a padawan ... looking for my way. :D -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Andrew Nikitin Sent: Tuesday, July 27, 2010 9:52 PM To: J programming Subject: Re: [Jprogramming] index origin 0 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 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
