ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:94486] [CommonRuby Feature#16118] Array .distance allow custom comparison
       [not found] <redmine.issue-16118.20190822202627@ruby-lang.org>
@ 2019-08-22 20:26 ` ngomez
  0 siblings, 0 replies; only message in thread
From: ngomez @ 2019-08-22 20:26 UTC (permalink / raw)
  To: ruby-core

Issue #16118 has been reported by ngomez (Nancy Gomez).

----------------------------------------
Feature #16118: Array .distance allow custom comparison
https://bugs.ruby-lang.org/issues/16118

* Author: ngomez (Nancy Gomez)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
Hello!

I wanted to know if there's any plan to implement the ability to define comparison between individual items in arrays.

Here is where I originally asked the question on Stack Overflow: https://stackoverflow.com/questions/57316775/is-there-any-way-to-specify-how-to-compare-of-array-of-objects-for-difference-f

But specifically, I noticed nearly all the existing Array functions allow us to define ways for comparison, such as #uniq but #difference does not :( This is quite unfortunate but I'm hoping it's just because this function was introduced in 2.6.0, and hopefully this feature can be implemented?

Thanks for any and all info :)



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-08-22 20:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-16118.20190822202627@ruby-lang.org>
2019-08-22 20:26 ` [ruby-core:94486] [CommonRuby Feature#16118] Array .distance allow custom comparison ngomez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).