Coding, Software Development, Java, Scala, Agile.
property_sorting_should_be_stable = lambda do |generated_arg| # , other_generated_arg, etc sorted = Sorter.sort(generated_arg) sorted.chunk{|item| item.n}.each do |n, items| if items.size > 1 # lazily spot check first = items.first last = items.last if generated_arg.index(first) >