Aladdin - Scala Bugtracking
[#1131] project: api priority: low category: bug
submitter assigned to status date submitted
Nikolay Sean fixed 2007-05-22 08:47:04.0
subject [contrib #545] Collection.equalWith should be moved to Seq
code
Collection.equalWith works only with ordered collections, particulary it does not work with sets:

===
val a = Set(1, 2, 3, 4, 5)
val b = Set("1", "2", "3", "4", "5")

Console.println(a.equalWith(b, { (x: Int, y: String) => x.toString == y }))
===

Collection.equalWith should be moved to Seq.
what happened
what expected
[back to overview]
Changes of this bug report
Nikolay  edited on  2007-05-22 08:47:38.0
Sean  edited on  2007-07-17 17:56:32.0