Re: Find Minimum for element in multiple dimensional array

2015-07-24 Thread Robert Davis
On Wednesday, July 22, 2015 at 5:54:30 PM UTC-5, Robert Davis wrote: > Given a set of arrays within an array how do I find the arrays with the > minimum values based on two elements/columns in the array? Those two > elements/columns are the destination zip code and distance. > > I have an array

Re: Find Minimum for element in multiple dimensional array

2015-07-23 Thread Denis McMahon
On Wed, 22 Jul 2015 15:54:06 -0700, Robert Davis wrote: > Given a set of arrays within an array how do I find the arrays with the > minimum values based on two elements/columns in the array? Those two > elements/columns are the destination zip code and distance. create a new dictionary for each

Re: Find Minimum for element in multiple dimensional array

2015-07-23 Thread Robert Davis
On Wednesday, July 22, 2015 at 5:54:30 PM UTC-5, Robert Davis wrote: > Given a set of arrays within an array how do I find the arrays with the > minimum values based on two elements/columns in the array? Those two > elements/columns are the destination zip code and distance. > > I have an array

Re: Find Minimum for element in multiple dimensional array

2015-07-23 Thread Robert Davis
On Wednesday, July 22, 2015 at 5:54:30 PM UTC-5, Robert Davis wrote: > Given a set of arrays within an array how do I find the arrays with the > minimum values based on two elements/columns in the array? Those two > elements/columns are the destination zip code and distance. > > I have an array

Re: Find Minimum for element in multiple dimensional array

2015-07-22 Thread Emile van Sebille
On 7/22/2015 3:54 PM, Robert Davis wrote: I have an array of arrays that have a origin zip code, origin latitude, origin longitude, destination zip code, destination latitude, destination longitude, and miles between the two points. I need to keep only those combinations that represent the min

Find Minimum for element in multiple dimensional array

2015-07-22 Thread Robert Davis
Given a set of arrays within an array how do I find the arrays with the minimum values based on two elements/columns in the array? Those two elements/columns are the destination zip code and distance. I have an array of arrays that have a origin zip code, origin latitude, origin longitude, dest