Re: Sorting Nested Vectors and filter out some

2014-01-05 Thread Jeff Angle
Hi Cedric, Thanksvery insightful! On Sunday, January 5, 2014 1:30:07 AM UTC+3, Cedric Greevey wrote: > > You might wish to consider a different data structure. For example, the > inner objects might be better off as maps with named keys, so your lookup > keys would be things like :amount rat

Re: Sorting Nested Vectors and filter out some

2014-01-04 Thread Jeff Angle
;BLOOD GLUCOSE GLUCOMETER-CONTOUR " 0 0 0 "N/A" "N/A"] ["151829" "BLOOD GLUCOSE STRIPS(50 STRIPS)-CONTOUR " "12.0" 360.0 0 "3000.00 %" "N/A"] ["151828" "BLOOD GLUCOSE STRIPS(50 STRIPS)-SURESTEP" 0 360.0 0

Sorting Nested Vectors and filter out some

2014-01-03 Thread Jeff Angle
Hi guys! this has made me pull quite a load of hair new to clojure.. have a nested vector say [[salt 0 0 %deviation 0&0] [sugar 5 10 %deviation 5$10] [milk 1 2 %deviation 1&2 ] [bread] ...] where % deviation is the actual figure of evaluting the deviation between e.g 5 and 10 for sugar,