Sha256: cfc167f7052f8a95345c82d7cd7e91c140ae8426438038c4b0921c6050cbc5b7
Contents?: true
Size: 199 Bytes
Versions: 1
Compression:
Stored size: 199 Bytes
Contents
module OptParseBuilder module StableSort # :nodoc: module_function def stable_sort_by!(a) a.sort_by!.with_index do |e, i| [yield(e), i] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opt_parse_builder-0.1.0 | lib/opt_parse_builder/stable_sort.rb |